improving db connection

This commit is contained in:
2025-09-12 21:25:39 -03:00
parent 4b2e2a764b
commit e88a5a4cf4
2 changed files with 3 additions and 151 deletions

View File

@@ -7,10 +7,11 @@ services:
restart: unless-stopped
image: git.ivanch.me/ivanch/opencand.api:latest
ports:
- "5100:8080"
- "5100:8080"
environment:
ASPNETCORE_ENVIRONMENT: "Production"
DatabaseSettings__ConnectionString: "Host=db;Port=5432;Database=opencand;Username=root;Password=root"
Logging__LogLevel__Default: "Information"
DatabaseSettings__ConnectionString: "Host=db;Port=5432;Database=opencand;Username=root;Password=root;Pooling=true;Minimum Pool Size=1;Maximum Pool Size=20;Connection Lifetime=300;Command Timeout=30;Application Name=OpenCand.API;Include Error Detail=true"
FotosSettings__ApiBasePath: "https://api.opencand.ivanch.me/assets/fotos"
volumes:
- ./fotos_cand:/app/fotos_cand