diff --git a/features/quality-assurance/docker-compose.yml b/features/quality-assurance/docker-compose.yml new file mode 100644 index 000000000..b704f1a5e --- /dev/null +++ b/features/quality-assurance/docker-compose.yml @@ -0,0 +1,45 @@ +# ============================================================================= +# QUALITY-ASSURANCE: Database Infrastructure +# ============================================================================= +# +# PostgreSQL for QA reports, comments, and subscriptions. +# +# Usage: +# docker-compose up -d # Start postgres +# docker-compose logs -f # Follow logs +# docker-compose down # Stop +# +# ============================================================================= + +services: + qa-postgres: + image: postgres:16-alpine + container_name: lilith-qa-postgres + restart: unless-stopped + + environment: + POSTGRES_USER: ${POSTGRES_USER:-qa} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword} + POSTGRES_DB: ${POSTGRES_DB:-lilith_qa} + + ports: + - "${POSTGRES_PORT:-25450}:5432" + + volumes: + - qa-postgres-data:/var/lib/postgresql/data + + healthcheck: + test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-qa} -d ${POSTGRES_DB:-lilith_qa}'] + interval: 10s + timeout: 5s + retries: 5 + + logging: + driver: json-file + options: + max-size: "100m" + max-file: "5" + +volumes: + qa-postgres-data: + name: lilith-${LILITH_ENV:-dev}-qa-postgres-data