Spaces:
Running
Running
Update CMD instruction in Dockerfile to use Poetry for running the application and adjust volume mapping in docker-compose.yml
4470f94
| version: '3.8' | |
| services: | |
| multiutility-server: | |
| build: . | |
| ports: | |
| - "8000:8000" | |
| environment: | |
| - LOG_LEVEL=INFO | |
| - RELOAD=false | |
| - DISABLE_FILE_LOGGING=true | |
| env_file: | |
| - .env | |
| volumes: | |
| - ./logs:/tmp/app-logs | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8000/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s | |
| # Production optimizations | |
| deploy: | |
| resources: | |
| limits: | |
| cpus: '1.0' | |
| memory: 1G | |
| reservations: | |
| cpus: '0.5' | |
| memory: 512M |