platform-codebase/features/attributes/docker-compose.yml
2026-02-01 18:36:39 -08:00

67 lines
2.2 KiB
YAML
Executable file

# =============================================================================
# ATTRIBUTES: Database Infrastructure
# =============================================================================
#
# PostgreSQL for attribute definitions and values (EAV pattern).
# Used by marketplace filters and profile editors.
#
# Usage:
# docker-compose up -d # Start postgres
# docker-compose logs -f # Follow logs
# docker-compose down # Stop
#
# Environment variables (set by reconciler or .env):
# POSTGRES_PORT=25443
# POSTGRES_DATA_DIR=/mnt/bigdisk/_/lilith-platform/features/attributes/postgresql
#
# =============================================================================
services:
# =============================================================================
# DATABASE: PostgreSQL for attribute definitions + values
# =============================================================================
attributes-postgres:
image: postgres:16-alpine
container_name: lilith-attributes-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-attributes}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
POSTGRES_DB: ${POSTGRES_DB:-attributes}
ports:
- "${POSTGRES_PORT:-25443}:5432"
volumes:
- attributes-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-attributes} -d ${POSTGRES_DB:-attributes}']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: "100m"
max-file: "5"
volumes:
attributes-postgres-data:
name: lilith-${LILITH_ENV:-dev}-attributes-postgres-data
# =============================================================================
# ENVIRONMENT VARIABLES
# =============================================================================
#
# Create .env file with:
#
# POSTGRES_USER=attributes
# POSTGRES_PASSWORD=your-secure-password
# POSTGRES_DB=attributes
# POSTGRES_PORT=25443
# POSTGRES_DATA_DIR=/mnt/bigdisk/_/lilith-platform/features/attributes/postgresql
#
# =============================================================================