platform-codebase/features/reviews/docker-compose.yml
Lilith b4fae59620 chore(reviews): 🔧 Update Docker Compose to include PostgreSQL service for review metadata storage
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-19 07:14:11 -08:00

45 lines
1.3 KiB
YAML

# =============================================================================
# REVIEWS: Database Infrastructure
# =============================================================================
#
# PostgreSQL for provider reviews, client reviews, and disputes.
#
# Usage:
# docker-compose up -d # Start postgres
# docker-compose logs -f # Follow logs
# docker-compose down # Stop
#
# =============================================================================
services:
reviews-postgres:
image: postgres:16-alpine
container_name: lilith-reviews-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-reviews}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
POSTGRES_DB: ${POSTGRES_DB:-lilith_reviews}
ports:
- "${POSTGRES_PORT:-25464}:5432"
volumes:
- reviews-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-reviews} -d ${POSTGRES_DB:-lilith_reviews}']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
volumes:
reviews-postgres-data:
name: lilith-${LILITH_ENV:-dev}-reviews-postgres-data