mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Increase DB connection limit
This commit is contained in:
parent
f5795a8bc8
commit
1eccfb9ced
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,7 @@ services:
|
||||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
command: postgres -c max_connections=512
|
command: postgres -c max_connections=200
|
||||||
|
|
||||||
# DB Bouncer
|
# DB Bouncer
|
||||||
pgbouncer:
|
pgbouncer:
|
||||||
|
@ -92,6 +92,7 @@ services:
|
||||||
- PGBOUNCER_DATABASE=${DB_DATABASE}
|
- PGBOUNCER_DATABASE=${DB_DATABASE}
|
||||||
- POSTGRESQL_USERNAME=${DB_USERNAME}
|
- POSTGRESQL_USERNAME=${DB_USERNAME}
|
||||||
- POSTGRESQL_PASSWORD=${DB_PASSWORD}
|
- POSTGRESQL_PASSWORD=${DB_PASSWORD}
|
||||||
|
- PGBOUNCER_MAX_DB_CONNECTIONS=200
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue