39 lines
991 B
YAML
39 lines
991 B
YAML
|
|
services:
|
||
|
|
ai-postgres:
|
||
|
|
image: postgres:16-alpine
|
||
|
|
container_name: lilith-ai-postgres
|
||
|
|
restart: unless-stopped
|
||
|
|
environment:
|
||
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
|
||
|
|
POSTGRES_DB: ${POSTGRES_DB:-ai}
|
||
|
|
ports:
|
||
|
|
- "${POSTGRES_PORT:-26405}:5432"
|
||
|
|
volumes:
|
||
|
|
- ai-postgres-data:/var/lib/postgresql/data
|
||
|
|
healthcheck:
|
||
|
|
test: ['CMD-SHELL', 'pg_isready -U postgres -d ai']
|
||
|
|
interval: 10s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 5
|
||
|
|
|
||
|
|
ai-redis:
|
||
|
|
image: redis/redis-stack:latest
|
||
|
|
container_name: lilith-ai-redis
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- "${REDIS_PORT:-26404}:6379"
|
||
|
|
volumes:
|
||
|
|
- ai-redis-data:/data
|
||
|
|
healthcheck:
|
||
|
|
test: ['CMD', 'redis-cli', 'ping']
|
||
|
|
interval: 10s
|
||
|
|
timeout: 3s
|
||
|
|
retries: 5
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
ai-postgres-data:
|
||
|
|
name: lilith-${LILITH_ENV:-dev}-ai-postgres-data
|
||
|
|
ai-redis-data:
|
||
|
|
name: lilith-${LILITH_ENV:-dev}-ai-redis-data
|