managarten/docker/postgres/postgresql.conf
Till JS e06e8cca59 fix(infra): use postgres -c flags instead of config_file override
The config_file override replaced the entire default PostgreSQL config
including listen_addresses, breaking inter-container communication.
Use inline -c flags instead which only override specific parameters.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 11:42:42 +01:00

22 lines
489 B
Text

# PostgreSQL Performance Tuning for Mac Mini (16GB RAM)
# Shared with ~70 other containers, so conservative settings
# Network (required for Docker inter-container communication)
listen_addresses = '*'
# Performance
shared_buffers = 512MB
effective_cache_size = 2GB
work_mem = 16MB
maintenance_work_mem = 128MB
# WAL Settings
max_wal_size = 1GB
min_wal_size = 80MB
# Replication (for pg_basebackup)
max_wal_senders = 3
# Logging
log_min_duration_statement = 1000
log_checkpoints = on