chore(self-host): tune bundled postgres for the shipped box (#2143)

This commit is contained in:
Hampus
2026-08-30 22:14:52 +02:00
committed by GitHub
parent 8092ad8c4d
commit 45ed740575
+25
View File
@@ -120,6 +120,31 @@ services:
image: postgres:16-alpine
restart: unless-stopped
networks: [fluxer]
command: >
postgres
-c max_connections=150
-c shared_buffers=512MB
-c effective_cache_size=2GB
-c work_mem=8MB
-c maintenance_work_mem=256MB
-c autovacuum_work_mem=128MB
-c random_page_cost=1.1
-c effective_io_concurrency=200
-c default_statistics_target=200
-c jit=off
-c min_wal_size=512MB
-c max_wal_size=2GB
-c checkpoint_completion_target=0.9
-c wal_buffers=16MB
-c wal_compression=zstd
-c bgwriter_delay=50ms
-c bgwriter_lru_maxpages=1000
-c autovacuum_vacuum_scale_factor=0.05
-c autovacuum_analyze_scale_factor=0.02
-c autovacuum_vacuum_cost_limit=2000
-c track_io_timing=on
-c shared_preload_libraries=pg_stat_statements
shm_size: 256mb
environment:
POSTGRES_DB: fluxer
POSTGRES_USER: fluxer