# Production Docker Compose Configuration version: '3.8' services: backend: build: context: ./backend dockerfile: Dockerfile ports: - "8000:8000" volumes: - helm_workspaces:/tmp/helmview_workspaces environment: - PYTHONUNBUFFERED=1 - WORKSPACE_BASE_PATH=/tmp/helmview_workspaces - MAX_UPLOAD_SIZE=104857600 - HELM_TIMEOUT=60 restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s deploy: resources: limits: cpus: '2' memory: 2G reservations: cpus: '1' memory: 512M frontend: build: context: ./frontend dockerfile: Dockerfile.prod args: - VITE_API_URL=${VITE_API_URL:-http://localhost:8000} ports: - "80:80" depends_on: backend: condition: service_healthy restart: unless-stopped deploy: resources: limits: cpus: '1' memory: 512M reservations: cpus: '0.5' memory: 256M volumes: helm_workspaces: driver: local