mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 01:35:28 +00:00
40 lines
903 B
YAML
40 lines
903 B
YAML
services:
|
|
db:
|
|
# If you use a config generator, use the value below for your
|
|
# "ram" size
|
|
shm_size: 4gb
|
|
command:
|
|
- "postgres"
|
|
- "-c"
|
|
- "max_connections=40"
|
|
- "-c"
|
|
- "shared_buffers=1GB"
|
|
- "-c"
|
|
- "effective_cache_size=3GB"
|
|
- "-c"
|
|
- "maintenance_work_mem=512MB"
|
|
- "-c"
|
|
- "checkpoint_completion_target=0.9"
|
|
- "-c"
|
|
- "wal_buffers=16MB"
|
|
- "-c"
|
|
- "default_statistics_target=500"
|
|
- "-c"
|
|
- "random_page_cost=1.1"
|
|
- "-c"
|
|
- "effective_io_concurrency=200"
|
|
- "-c"
|
|
- "work_mem=6553kB"
|
|
- "-c"
|
|
- "min_wal_size=4GB"
|
|
- "-c"
|
|
- "max_wal_size=16GB"
|
|
- "-c"
|
|
- "max_worker_processes=4"
|
|
- "-c"
|
|
- "max_parallel_workers_per_gather=2"
|
|
- "-c"
|
|
- "max_parallel_workers=4"
|
|
- "-c"
|
|
- "max_parallel_maintenance_workers=2"
|