- Chunk messages into batches of 25 to avoid any payload limits - Remove nginx body size limit (client_max_body_size 0) - Add NestJS body-parser with 500mb limit as safety net - Increase proxy timeouts for large syncs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
67 lines
2.1 KiB
YAML
67 lines
2.1 KiB
YAML
# =============================================================================
|
|
# 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=5443
|
|
# POSTGRES_DATA_DIR=/mnt/bigdisk/_/lilith-platform/features/attributes/postgresql
|
|
#
|
|
# =============================================================================
|
|
|
|
services:
|
|
# =============================================================================
|
|
# DATABASE: PostgreSQL for attribute definitions + values
|
|
# =============================================================================
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: attributes-postgres
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-attributes}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-devpassword}
|
|
POSTGRES_DB: ${POSTGRES_DB:-attributes}
|
|
|
|
ports:
|
|
- "${POSTGRES_PORT:-5443}: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: attributes-postgres-data
|
|
|
|
# =============================================================================
|
|
# ENVIRONMENT VARIABLES
|
|
# =============================================================================
|
|
#
|
|
# Create .env file with:
|
|
#
|
|
# POSTGRES_USER=attributes
|
|
# POSTGRES_PASSWORD=your-secure-password
|
|
# POSTGRES_DB=attributes
|
|
# POSTGRES_PORT=5443
|
|
# POSTGRES_DATA_DIR=/mnt/bigdisk/_/lilith-platform/features/attributes/postgresql
|
|
#
|
|
# =============================================================================
|