mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-04 16:13:23 +00:00
- The post-task reclaim skip recognises the legacy application.* embed name,
so query embeds queued by the previous release do not pay a full collect.
- The Azure compose file mounts host data on /app/{indexes,inputs,vectors},
where the process actually reads and writes; it mounted /app/application/...
before the rename and /app/docsgpt/... after it, and nothing wrote to either.
- The offline image check triggers on docsgpt/requirements*.txt again;
dependabot's pip entry points at docsgpt/.
- install_hint() and its docstring name docsgpt/requirements-<extra>.txt;
the test asserts the full path.
- application/vectors/ stays ignored: the compose files still mount it.
- The durability QA script quiets the docsgpt logger tree.
- Upgrade note: the three renamed source-sync entries start their timers
from the upgrade.
117 lines
3.9 KiB
YAML
117 lines
3.9 KiB
YAML
services:
|
|
frontend:
|
|
build:
|
|
context: ../frontend
|
|
target: dev
|
|
environment:
|
|
# Every VITE_* the app reads. A bare name is passed through only when it is
|
|
# set in the shell or the --env-file, so an unset one does not reach the
|
|
# container as an empty string and override the image's own default.
|
|
- VITE_API_HOST=http://localhost:7091
|
|
- VITE_API_STREAMING=${VITE_API_STREAMING:-true}
|
|
- VITE_BASE_URL
|
|
- VITE_GOOGLE_CLIENT_ID
|
|
- VITE_GOOGLE_PICKER_API_KEY
|
|
- VITE_SHARE_POINT_CLIENT_ID
|
|
- VITE_CONFLUENCE_CLIENT_ID
|
|
- VITE_NOTIFICATION_TEXT
|
|
- VITE_NOTIFICATION_LINK
|
|
- VITE_ENABLE_VOICE_INPUT
|
|
- VITE_DISABLE_SOURCE_FE
|
|
- VITE_USE_V
|
|
ports:
|
|
- "5173:5173"
|
|
depends_on:
|
|
- backend
|
|
|
|
backend:
|
|
build:
|
|
context: ..
|
|
dockerfile: docsgpt/Dockerfile
|
|
args:
|
|
EXTRAS: ${EXTRAS:-}
|
|
INSTALL_DOCLING: ${INSTALL_DOCLING:-false}
|
|
# Off by default; deployments running OCR_ENABLED=true with tesseract
|
|
# must set INSTALL_TESSERACT=true before rebuilding (see docker-compose.yaml).
|
|
INSTALL_TESSERACT: ${INSTALL_TESSERACT:-false}
|
|
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:
|
|
# Host data lives under application/ (the old package directory) for this
|
|
# release, like the other compose files; it moves with the packaging work,
|
|
# together with an upgrade note. The container side is /app: the process
|
|
# runs there and resolves indexes/inputs/vectors relative to it (earlier
|
|
# versions of this file mounted /app/application/..., which nothing wrote to).
|
|
- ../application/indexes:/app/indexes
|
|
- ../application/inputs:/app/inputs
|
|
- ../application/vectors:/app/vectors
|
|
depends_on:
|
|
redis:
|
|
condition: service_started
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
worker:
|
|
build:
|
|
context: ..
|
|
dockerfile: docsgpt/Dockerfile
|
|
args:
|
|
EXTRAS: ${EXTRAS:-}
|
|
INSTALL_DOCLING: ${INSTALL_DOCLING:-false}
|
|
# Off by default; deployments running OCR_ENABLED=true with tesseract
|
|
# must set INSTALL_TESSERACT=true before rebuilding (see docker-compose.yaml).
|
|
INSTALL_TESSERACT: ${INSTALL_TESSERACT:-false}
|
|
# `parsing` queue carries read_document/parse_document; required for its await to resolve.
|
|
command: celery -A docsgpt.app.celery worker -l INFO -Q docsgpt,parsing,embeddings
|
|
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:
|