docker-compose.yml 450 B

12345678910111213141516171819
  1. version: '3.8'
  2. services:
  3. account-feeder:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. container_name: q2api-account-feeder
  8. ports:
  9. - "${FEEDER_PORT:-8001}:8001"
  10. env_file:
  11. - .env
  12. restart: unless-stopped
  13. command: uvicorn app:app --host 0.0.0.0 --port 8001 --workers 4
  14. healthcheck:
  15. test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
  16. interval: 30s
  17. timeout: 10s
  18. retries: 3