Skip to content

Commit d564852

Browse files
ordinary-devbameda
authored andcommitted
feat: add pgbouncer support to the docker container
Add the ability to configure the DISABLE_SERVER_SIDE_CURSORS parameter via environment variables. More info: https://docs.djangoproject.com/en/4.2/ref/settings/#disable-server-side-cursors
1 parent 19c8ad2 commit d564852

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'HOST': os.getenv('POSTGRES_HOST'),
2525
'PORT': os.getenv('POSTGRES_PORT','5432'),
2626
'OPTIONS': {'sslmode': os.getenv('POSTGRES_SSLMODE','disable')},
27+
'DISABLE_SERVER_SIDE_CURSORS': os.getenv('POSTGRES_DISABLE_SERVER_SIDE_CURSORS', 'False') == 'True',
2728
}
2829
}
2930
SECRET_KEY = os.getenv('TAIGA_SECRET_KEY')

0 commit comments

Comments
 (0)