companion/@deployments/docker-compose.yml
Claude Code e455bc3990 deploy(deployments): 🚀 Refactor and enhance deployment workflows in the deployments directory
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-01 23:54:15 -07:00

40 lines
1.1 KiB
YAML

services:
companion-postgres:
image: postgres:16-alpine
container_name: lilith-companion-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-lilith}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-lilith}
POSTGRES_DB: ${POSTGRES_DB:-companion}
ports:
- "${POSTGRES_PORT:-26407}:5432"
volumes:
- companion-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-lilith} -d ${POSTGRES_DB:-companion}']
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
companion-redis:
image: redis:7-alpine
container_name: lilith-companion-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-26406}:6379"
volumes:
- companion-redis-data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
volumes:
companion-postgres-data:
name: lilith-${LILITH_ENV:-dev}-companion-postgres-data
companion-redis-data:
name: lilith-${LILITH_ENV:-dev}-companion-redis-data