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