Skip to content

Commit 89b5bac

Browse files
committed
added max connections env variable
1 parent 3ddcad2 commit 89b5bac

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docker/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ REDIS_PASSWORD=dats123
9191
POSTGRES_DB=dats
9292
POSTGRES_USER=datsuser
9393
POSTGRES_PASSWORD=dats123
94+
POSTGRES_MAX_CONNECTIONS=200
9495

9596

9697
### RQ settings

docker/compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ services:
6464
POSTGRES_USER: ${POSTGRES_USER:?postgres-user-required!}
6565
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?postgres-password-required!}
6666
POSTGRES_DB: ${POSTGRES_DB:?postgres-db-required!}
67+
command: ["postgres", "-c", "max_connections=${POSTGRES_MAX_CONNECTIONS:?postgres-max-connections-required!}"]
6768
restart: always
6869
networks:
6970
- dats_network

0 commit comments

Comments
 (0)