mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Increase connection count
This commit is contained in:
parent
16c45f8322
commit
f5795a8bc8
2 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,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=200
|
||||||
|
|
||||||
# DB Bouncer
|
# DB Bouncer
|
||||||
pgbouncer:
|
pgbouncer:
|
||||||
|
@ -59,6 +60,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
|
||||||
|
|
||||||
|
|
|
@ -82,6 +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
|
||||||
|
|
||||||
# DB Bouncer
|
# DB Bouncer
|
||||||
pgbouncer:
|
pgbouncer:
|
||||||
|
|
Loading…
Reference in a new issue