From 11dfa4938f16c825783e202c835dd386de876f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C4=B0pek?= Date: Thu, 9 Apr 2026 16:34:29 +0300 Subject: [PATCH] feat(docker): update postgres configuration for improved performance --- .gitignore | 1 + docker-compose.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index fe08722..6fa35f5 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/docker-compose.yml b/docker-compose.yml index 004cb18..4d09fa3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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