File size: 538 Bytes
8a50149 f073efc 8a50149 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
image: feedback-analysis:latest
restart: unless-stopped
env_file:
- .env
ports:
- "8000:8000"
volumes:
- ./:/app:ro
# By default, run the production command from the Dockerfile.
command: ["uvicorn", "app.api:app", "--host", "0.0.0.0", "--port", "8000"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
|