Refactor database connection handling and update Docker Compose environment variables #5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user