make sure to configure db pool size in database url

also define threads explicitly to make it easier to adjust
This commit is contained in:
Markus Kahl
2021-06-08 13:47:46 +01:00
committed by GitHub
parent 2d672bd9de
commit 44c005cd81

View File

@@ -19,7 +19,9 @@ x-op-app: &app
RAILS_CACHE_STORE: "memcache"
OPENPROJECT_CACHE__MEMCACHE__SERVER: "cache:11211"
OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"
DATABASE_URL: "postgres://postgres:p4ssw0rd@db/openproject"
DATABASE_URL: "postgres://postgres:p4ssw0rd@db/openproject?pool=20&encoding=unicode&reconnect=true"
RAILS_MIN_THREADS: 4
RAILS_MAX_THREADS: 16
USE_PUMA: "true"
# set to true to enable the email receiving feature. See ./docker/cron for more options
IMAP_ENABLED: "${IMAP_ENABLED:-false}"