platform-codebase/@templates/feature-showcase/docker-compose.yml
Lilith b179ddea52 style(ui-or-templates-if-more): 🎨 Implement consistent spacing and typography fixes
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-17 04:48:41 -08:00

45 lines
1.3 KiB
YAML

# Feature Showcase Docker Services
# PostgreSQL + Redis for local development
#
# Configuration via .env file (copy .env.example to .env)
# Run with: bun run showcase (starts this + API + frontend)
# Or standalone: docker compose up
services:
showcase-postgres:
image: postgres:17-alpine
container_name: lilith-showcase-${FEATURE_NAME:-feature}-postgres
restart: unless-stopped
ports:
- '${DB_PORT:-25432}:5432'
environment:
POSTGRES_USER: ${DB_USER:-lilith}
POSTGRES_PASSWORD: ${DB_PASSWORD:-lilith}
POSTGRES_DB: ${DB_NAME:-lilith}
volumes:
- showcase-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USER:-lilith}']
interval: 10s
timeout: 5s
retries: 5
showcase-redis:
image: redis:7-alpine
container_name: lilith-showcase-${FEATURE_NAME:-feature}-redis
restart: unless-stopped
ports:
- '${REDIS_PORT:-6379}:6379'
volumes:
- showcase-redis-data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
volumes:
showcase-postgres-data:
name: lilith-showcase-${FEATURE_NAME:-feature}-postgres-data
showcase-redis-data:
name: lilith-showcase-${FEATURE_NAME:-feature}-redis-data