Refactor database connection handling and update Docker Compose environment variables #5

This commit is contained in:
Marek Lesko
2025-07-28 10:05:41 +00:00
parent 75e43c7473
commit c8fde6f44c
3 changed files with 19 additions and 18 deletions

View File

@@ -6,14 +6,15 @@ services:
depends_on:
- db
restart: unless-stopped
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Server=localhost;Database=centrum;User Id=sa;Password=$DB_PASSWORD;
network_mode: host
ports:
- "5000:5000"
db:
image: mcr.microsoft.com/mssql/server:2019-latest
restart: unless-stopped
network_mode: host
environment:
SA_PASSWORD: P@ssw0rd
SA_PASSWORD: $DB_PASSWORD
ACCEPT_EULA: Y