docker-compose.traefik.yml 709 B

1234567891011121314151617181920212223242526
  1. services:
  2. application:
  3. command: uvicorn src.app:app --reload --host 0.0.0.0 --port 8000
  4. labels:
  5. - "traefik.enable=true"
  6. - "traefik.http.routers.rag-http.entrypoints=web"
  7. - "traefik.http.routers.rag-http.rule=Host(`rag.localhost`)"
  8. - "traefik.http.routers.rag-http.service=rag"
  9. - "traefik.http.services.rag.loadbalancer.server.port=8000"
  10. - "traefik.docker.network=proxy"
  11. healthcheck:
  12. test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
  13. interval: 30s
  14. timeout: 10s
  15. retries: 3
  16. start_period: 15s
  17. networks:
  18. default:
  19. proxy:
  20. aliases:
  21. - rag
  22. networks:
  23. proxy:
  24. name: proxy
  25. external: true