services: frontend: build: ../frontend environment: - VITE_API_HOST=http://localhost:7091 - VITE_API_STREAMING=$VITE_API_STREAMING ports: - "5173:5173" depends_on: - backend backend: build: ../application env_file: - ../.env environment: # Override URLs to use docker service names - CELERY_BROKER_URL=redis://redis:6379/0 - CELERY_RESULT_BACKEND=redis://redis:6379/1 - POSTGRES_URI=postgresql://docsgpt:docsgpt@postgres:5432/docsgpt ports: - "7091:7091" volumes: - ../application/indexes:/app/application/indexes - ../application/inputs:/app/application/inputs - ../application/vectors:/app/application/vectors depends_on: redis: condition: service_started postgres: condition: service_healthy worker: build: ../application # `parsing` queue carries read_document/parse_document; required for its await to resolve. command: celery -A application.app.celery worker -l INFO -Q docsgpt,parsing env_file: - ../.env environment: # Override URLs to use docker service names - CELERY_BROKER_URL=redis://redis:6379/0 - CELERY_RESULT_BACKEND=redis://redis:6379/1 - API_URL=http://backend:7091 - POSTGRES_URI=postgresql://docsgpt:docsgpt@postgres:5432/docsgpt depends_on: redis: condition: service_started postgres: condition: service_healthy # NOTE: sandboxed code execution (the `code_executor` / `artifact_generator` # tools) is an OPT-IN feature and is intentionally NOT part of this default # stack. To run it, layer the sandbox overlay on top of this file: # docker compose -f docker-compose-azure.yaml \ # -f optional/docker-compose.optional.sandbox.yaml up # See deployment/sandbox/README.md. redis: image: redis:6-alpine ports: - 6379:6379 postgres: image: postgres:16-alpine environment: - POSTGRES_USER=docsgpt - POSTGRES_PASSWORD=docsgpt - POSTGRES_DB=docsgpt ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U docsgpt -d docsgpt"] interval: 5s timeout: 5s retries: 10 volumes: postgres_data: