Files
exams/docker-compose.yml

17 lines
462 B
YAML

services:
application:
image: node:24-slim
working_dir: /app
volumes:
- ./:/app
ports:
- "$PORT:8080"
env_file:
- .env
command: sh -c "git pull && npm i -g pnpm && cd frontend && pnpm install && pnpm run build && cd ../backend && pnpm install && pnpm run start"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:$PORT/health"]
interval: 30s
timeout: 10s
retries: 3