fix: ⚡ Increase DB max connections.

This commit is contained in:
Nyeki.py
2024-10-17 14:39:15 -03:00
parent cd52adf61f
commit 5f6f29485c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@ services:
- POSTGRES_PASSWORD=payphone - POSTGRES_PASSWORD=payphone
volumes: volumes:
- database:/var/lib/postgresql/data - database:/var/lib/postgresql/data
command: postgres -c 'max_connections=500'
restart: always restart: always
redis: redis:
+1 -1
View File
@@ -19,7 +19,7 @@ TORTOISE_ORM = {
} }
}, },
"minsize": 5, "minsize": 5,
"maxsize": 100 "maxsize": 500
} }
SUGGESTIONS_CHANNEL_ID = int(os.getenv("SUGGESTIONS_CHANNEL_ID")) SUGGESTIONS_CHANNEL_ID = int(os.getenv("SUGGESTIONS_CHANNEL_ID"))