# Local development topology. App services are commented out until their # Dockerfiles exist (Phase 5) — infra services can be started standalone # today for Phase 1 (ingestion) development, e.g.: # docker compose up postgres qdrant redis services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: duoc_thu POSTGRES_PASSWORD: duoc_thu POSTGRES_DB: duoc_thu ports: - "5432:5432" volumes: - postgres-data:/var/lib/postgresql/data qdrant: image: qdrant/qdrant:latest ports: - "6333:6333" - "6334:6334" volumes: - qdrant-data:/qdrant/storage redis: image: redis:7-alpine ports: - "6379:6379" volumes: - redis-data:/data # Observability. `ai-service` runs on the host during development, so # Prometheus reaches it via host.docker.internal rather than a service name; # when ai-service moves into this compose file, change the target to # `ai-service:8000` and drop the extra_hosts entry. prometheus: image: prom/prometheus:latest ports: - "9090:9090" volumes: - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - prometheus-data:/prometheus extra_hosts: - "host.docker.internal:host-gateway" grafana: image: grafana/grafana:latest ports: - "3002:3000" environment: # Local development only. The dashboard is the demo surface, and a login # wall in front of it during a review is friction with no security value # on a laptop-local stack. Do not carry this into the k3s deployment. GF_AUTH_ANONYMOUS_ENABLED: "true" GF_AUTH_ANONYMOUS_ORG_ROLE: Admin GF_AUTH_DISABLE_LOGIN_FORM: "true" volumes: - ./grafana/provisioning:/etc/grafana/provisioning:ro - ./grafana/dashboards:/var/lib/grafana/dashboards:ro - grafana-data:/var/lib/grafana depends_on: - prometheus # ai-service: # build: ../../apps/ai-service # env_file: ../../apps/ai-service/.env # ports: ["8000:8000"] # depends_on: [qdrant] # # api-gateway: # build: ../../apps/api-gateway # env_file: ../../apps/api-gateway/.env # ports: ["3000:3000"] # depends_on: [auth-service, user-service, chat-service] # # auth-service: # build: ../../apps/auth-service # env_file: ../../apps/auth-service/.env # depends_on: [postgres] # # user-service: # build: ../../apps/user-service # env_file: ../../apps/user-service/.env # depends_on: [postgres] # # chat-service: # build: ../../apps/chat-service # env_file: ../../apps/chat-service/.env # depends_on: [postgres, ai-service] # # web: # build: ../../apps/web # ports: ["3001:3000"] # depends_on: [api-gateway] volumes: postgres-data: qdrant-data: redis-data: prometheus-data: grafana-data: