Files
itdontfitgsapi/docker-compose.yml
2025-09-23 22:58:29 -04:00

28 lines
658 B
YAML

version: '3.8'
services:
# FastAPI Application
api:
build: .
container_name: itdontfitgs-api
environment:
DATABASE_URL: ${DATABASE_URL}
SECRET_TOKEN: ${SECRET_TOKEN}
API_HOST: 0.0.0.0
API_PORT: 8000
ENVIRONMENT: production
DEBUG: true
SSL_REDIRECT: false # Handled by your gateway
LOG_LEVEL: INFO
ports:
- "8082:8000"
restart: unless-stopped
volumes:
- ./logs:/app/logs
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s