perf: ⚡ Assign specific CPU cores to bot and DB container.

This commit is contained in:
Nyeki.py
2024-10-23 18:06:56 -03:00
parent c056709332
commit c145f30d21
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -3,6 +3,7 @@ name: "payphone"
services:
bot:
build: .
cpuset: ${CPUSET_BOT:-0,1}
env_file:
- .env
environment:
@@ -14,6 +15,7 @@ services:
database:
image: postgres:16.3
cpuset: ${CPUSET_DATABASE:-2,3}
environment:
- POSTGRES_DB=payphone
- POSTGRES_USER=payphone