add env MAX_DB_CONNECTIONS to set the database connection limit

This commit is contained in:
2024-02-27 09:42:54 +01:00
parent 24670cdb6b
commit eead80b60a
5 changed files with 7 additions and 2 deletions

View File

@ -11,6 +11,7 @@ services:
db:
image: "postgres:12"
command: -c "max_connections=${MAX_DB_CONNECTIONS:-100}"
volumes:
- "postgres:/var/lib/postgresql/data"
networks: