53 lines
1.4 KiB
YAML
Executable file
53 lines
1.4 KiB
YAML
Executable file
# I18N Feature Database Stack
|
|
# Database services for internationalization
|
|
#
|
|
# Run with: docker compose up -d
|
|
# Uses Docker volumes to avoid NFS permission issues
|
|
|
|
services:
|
|
i18n-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: lilith-i18n-postgres
|
|
restart: unless-stopped
|
|
ports:
|
|
- '${POSTGRES_PORT:-25435}:5432'
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-lilith}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-i18n_dev}
|
|
POSTGRES_DB: ${POSTGRES_DB:-lilith_i18n}
|
|
volumes:
|
|
- i18n-postgres-data:/var/lib/postgresql/data
|
|
- ./database/init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-lilith}']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
i18n-redis:
|
|
image: redis:7.4-alpine
|
|
container_name: lilith-i18n-redis
|
|
restart: unless-stopped
|
|
ports:
|
|
- '${REDIS_PORT:-26382}:6379'
|
|
volumes:
|
|
- i18n-redis-data:/data
|
|
command:
|
|
- redis-server
|
|
- --appendonly
|
|
- "yes"
|
|
- --maxmemory
|
|
- "256mb"
|
|
- --maxmemory-policy
|
|
- "allkeys-lru"
|
|
healthcheck:
|
|
test: ['CMD', 'redis-cli', 'ping']
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 5
|
|
|
|
volumes:
|
|
i18n-postgres-data:
|
|
name: lilith-${LILITH_ENV:-dev}-i18n-postgres-data
|
|
i18n-redis-data:
|
|
name: lilith-${LILITH_ENV:-dev}-i18n-redis-data
|