feat(docker): update postgres configuration for improved performance

This commit is contained in:
Yusuf İpek
2026-04-09 16:34:29 +03:00
parent e97d60cf36
commit 11dfa4938f
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -51,3 +51,4 @@ OPTIMIZATIONS.md
# Claude doesn't respect AGENTS.md and I don't want double AGENTS.md files on the repo.
CLAUDE.md
.github/prompts/
+12
View File
@@ -22,6 +22,18 @@ services:
image: postgres:16-alpine
env_file:
- .env.docker
command:
- "postgres"
- "-c"
- "max_connections=200"
- "-c"
- "shared_buffers=256MB"
- "-c"
- "work_mem=16MB"
- "-c"
- "effective_cache_size=1GB"
- "-c"
- "maintenance_work_mem=128MB"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s