Spaces:
Sleeping
Sleeping
services: | |
css-essay-grader: | |
build: | |
context: . | |
dockerfile: Dockerfile.optimized | |
ports: | |
- "5000:5000" | |
environment: | |
- GOOGLE_CLOUD_CREDENTIALS=/app/css-edge-e347b0ed2b9e.json | |
- OPENAI_API_KEY=${OPENAI_API_KEY:-} | |
- PYTHONUNBUFFERED=1 | |
volumes: | |
- ./temp:/app/temp | |
- ./output:/app/output | |
deploy: | |
resources: | |
limits: | |
memory: 1G | |
cpus: '1.0' | |
reservations: | |
memory: 512M | |
cpus: '0.5' | |
restart: unless-stopped | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:5000/health"] | |
interval: 30s | |
timeout: 10s | |
retries: 3 | |
start_period: 40s |