Spaces:
Build error
Build error
| version: '3.8' | |
| services: | |
| app: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| ports: | |
| - "3001:3001" | |
| environment: | |
| - NODE_ENV=production | |
| - PORT=3001 | |
| # Environment variables from file | |
| env_file: | |
| - .env.docker | |
| restart: unless-stopped | |
| # For production, consider adding healthcheck | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:3001/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s |