chore(quality-assurance): 🔧 Update QA Docker Compose services/networks/volumes for deployment management
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
6604d0b7e1
commit
7bdbbbe5ea
1 changed files with 45 additions and 0 deletions
45
features/quality-assurance/docker-compose.yml
Normal file
45
features/quality-assurance/docker-compose.yml
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue