71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
# =============================================================================
|
|
# CLIENT-INTEL: Database Infrastructure
|
|
# =============================================================================
|
|
#
|
|
# PostgreSQL for intel reports and safety data.
|
|
# Redis for safety score caching.
|
|
#
|
|
# Usage:
|
|
# docker-compose up -d # Start all
|
|
# docker-compose logs -f # Follow logs
|
|
# docker-compose down # Stop
|
|
#
|
|
# =============================================================================
|
|
|
|
services:
|
|
client-intel-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: lilith-client-intel-postgres
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-client_intel}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
|
|
POSTGRES_DB: ${POSTGRES_DB:-lilith_client_intel}
|
|
|
|
ports:
|
|
- "${POSTGRES_PORT:-25462}:5432"
|
|
|
|
volumes:
|
|
- client-intel-postgres-data:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-client_intel} -d ${POSTGRES_DB:-lilith_client_intel}']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "100m"
|
|
max-file: "5"
|
|
|
|
client-intel-redis:
|
|
image: redis:7-alpine
|
|
container_name: lilith-client-intel-redis
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "${REDIS_PORT:-26397}:6379"
|
|
|
|
volumes:
|
|
- client-intel-redis-data:/data
|
|
|
|
healthcheck:
|
|
test: ['CMD', 'redis-cli', 'ping']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "100m"
|
|
max-file: "5"
|
|
|
|
volumes:
|
|
client-intel-postgres-data:
|
|
name: lilith-${LILITH_ENV:-dev}-client-intel-postgres-data
|
|
client-intel-redis-data:
|
|
name: lilith-${LILITH_ENV:-dev}-client-intel-redis-data
|