platform-codebase/features/blog/docker-compose.yml
Lilith d0886f624a chore(blog): 🔧 Update Docker Compose services for blog feature configuration
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-03-13 19:37:45 -07:00

66 lines
1.7 KiB
YAML

# =============================================================================
# BLOG: Database Infrastructure
# =============================================================================
#
# PostgreSQL for blog content (posts, authors, categories, tags, series).
# Redis for cache and BullMQ scheduled publish queue.
#
# Usage:
# docker-compose up -d # Start postgres + redis
# docker-compose logs -f # Follow logs
# docker-compose down # Stop
#
# =============================================================================
services:
blog-postgres:
image: postgres:16-alpine
container_name: lilith-blog-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-blog}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
POSTGRES_DB: ${POSTGRES_DB:-lilith_blog}
ports:
- "${POSTGRES_PORT:-25453}:5432"
volumes:
- blog-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-blog} -d ${POSTGRES_DB:-lilith_blog}']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
blog-redis:
image: redis:7.4-alpine
container_name: lilith-blog-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-26396}:6379"
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
volumes:
blog-postgres-data:
name: lilith-${LILITH_ENV:-dev}-blog-postgres-data