| 1234567891011121314151617181920212223242526 |
- services:
- application:
- command: uvicorn src.app:app --reload --host 0.0.0.0 --port 8000
- labels:
- - "traefik.enable=true"
- - "traefik.http.routers.rag-http.entrypoints=web"
- - "traefik.http.routers.rag-http.rule=Host(`rag.localhost`)"
- - "traefik.http.routers.rag-http.service=rag"
- - "traefik.http.services.rag.loadbalancer.server.port=8000"
- - "traefik.docker.network=proxy"
- healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
- interval: 30s
- timeout: 10s
- retries: 3
- start_period: 15s
- networks:
- default:
- proxy:
- aliases:
- - rag
- networks:
- proxy:
- name: proxy
- external: true
|