Install modular API, voice and embedding extras and use the supported single-process server entrypoint. Drain worker SIGTERM shutdown within the Compose grace period. Add isolated HTTPS embedding fixtures, bounded intake execution and reproducible account, publication, restart, lease-recovery and shutdown acceptance. Eight operational scenarios passed with zero real-provider calls.
62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
# Isolated, provider-free operational acceptance; never reads the deployment .env.
|
|
services:
|
|
db:
|
|
image: pgvector/pgvector:pg16
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: fixture
|
|
POSTGRES_DB: rag_ops_test
|
|
ports: ["127.0.0.1:55459:5432"]
|
|
networks: [default, access]
|
|
volumes: ["database:/var/lib/postgresql/data"]
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d rag_ops_test"]
|
|
interval: 2s
|
|
timeout: 2s
|
|
retries: 30
|
|
migrations:
|
|
image: rag-phase4-operational:verified
|
|
build:
|
|
context: ../..
|
|
dockerfile: Dockerfile
|
|
env_file: ["${ACCEPTANCE_ENV_FILE:?Supply the isolated fixture env file}"]
|
|
command: alembic upgrade head
|
|
depends_on:
|
|
db: {condition: service_healthy}
|
|
api:
|
|
image: rag-phase4-operational:verified
|
|
env_file: ["${ACCEPTANCE_ENV_FILE:?Supply the isolated fixture env file}"]
|
|
command: python -m app.server --host 0.0.0.0 --port 8000
|
|
ports: ["127.0.0.1:18080:8000"]
|
|
networks: [default, access]
|
|
volumes:
|
|
- originals:/app/data/originals
|
|
- extractions:/app/data/extractions
|
|
- ${ACCEPTANCE_TLS_DIRECTORY:?Supply fixture TLS directory}/cert.pem:/fixtures/ca.pem:ro
|
|
depends_on:
|
|
migrations: {condition: service_completed_successfully}
|
|
worker:
|
|
image: rag-phase4-operational:verified
|
|
env_file: ["${ACCEPTANCE_ENV_FILE:?Supply the isolated fixture env file}"]
|
|
command: python -m app.worker
|
|
volumes:
|
|
- originals:/app/data/originals
|
|
- extractions:/app/data/extractions
|
|
- ${ACCEPTANCE_TLS_DIRECTORY:?Supply fixture TLS directory}/cert.pem:/fixtures/ca.pem:ro
|
|
depends_on:
|
|
migrations: {condition: service_completed_successfully}
|
|
embedding:
|
|
image: rag-phase4-operational:verified
|
|
command: python /fixtures/phase4_embedding_fixture.py
|
|
volumes:
|
|
- ./phase4_embedding_fixture.py:/fixtures/phase4_embedding_fixture.py:ro
|
|
- ${ACCEPTANCE_TLS_DIRECTORY:?Supply fixture TLS directory}:/fixtures/tls:ro
|
|
volumes:
|
|
database:
|
|
originals:
|
|
extractions:
|
|
networks:
|
|
default:
|
|
internal: true
|
|
access: {}
|