27 lines
750 B
YAML
27 lines
750 B
YAML
# Profile Feature Stack
|
|
# Database services for user profile management
|
|
#
|
|
# Run with: docker compose up -d
|
|
# Uses Docker volumes to avoid NFS permission issues
|
|
|
|
services:
|
|
profile-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: profile-postgres
|
|
restart: unless-stopped
|
|
ports:
|
|
- '${POSTGRES_PORT:-5442}:5432'
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-lilith}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-profile_dev}
|
|
POSTGRES_DB: ${POSTGRES_DB:-lilith_profile}
|
|
volumes:
|
|
- profile-postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-lilith}']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
profile-postgres-data:
|