Skip to content

Commit 19bd201

Browse files
committed
make POSTGRES_MINSIZE configurable
1 parent c5371bd commit 19bd201

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.env-devel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ POSTGRES_HOST=postgres
194194
POSTGRES_PASSWORD=adminadmin
195195
POSTGRES_PORT=5432
196196
POSTGRES_USER=scu
197-
197+
POSTGRES_MINSIZE=5
198198
POSTGRES_READONLY_PASSWORD=readonly
199199
POSTGRES_READONLY_USER=postgres_readonly
200200

packages/settings-library/src/settings_library/postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PostgresSettings(BaseCustomSettings):
3232
# pool connection limits
3333
POSTGRES_MINSIZE: Annotated[
3434
int, Field(description="Minimum number of connections in the pool", ge=1)
35-
] = 1
35+
] = 5
3636
POSTGRES_MAXSIZE: Annotated[
3737
int, Field(description="Maximum number of connections in the pool", ge=1)
3838
] = 50

services/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ services:
726726
POSTGRES_HOST: ${POSTGRES_HOST}
727727
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
728728
POSTGRES_PORT: ${POSTGRES_PORT}
729+
POSTGRES_MINSIZE: ${POSTGRES_MINSIZE}
729730
POSTGRES_USER: ${POSTGRES_USER}
730731

731732
# WEBSERVER_DIAGNOSTICS

0 commit comments

Comments
 (0)