services: application: image: node:24-slim working_dir: /app volumes: - ./:/app ports: - "$PORT:8080" env_file: - .env command: sh -c "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