Merge pull request #4588 from coo1white/wire-postgres-tuning-vars

fix(deploy): pass the documented postgres tuning values to postgres
This commit is contained in:
Wesley Liddick
2026-07-20 10:23:59 +08:00
committed by GitHub
+9
View File
@@ -202,6 +202,15 @@ services:
nofile:
soft: 100000
hard: 100000
# Pass the tuning values documented in .env.example to postgres. The
# fallbacks are the postgres:18 stock defaults, so nothing changes when
# the variables are not set.
command: >
postgres
-c max_connections=${POSTGRES_MAX_CONNECTIONS:-100}
-c shared_buffers=${POSTGRES_SHARED_BUFFERS:-128MB}
-c effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-4GB}
-c maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}
volumes:
- postgres_data:/var/lib/postgresql/data
environment: