mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 13:48:43 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user