Edit docker-compose.yaml
This commit is contained in:
@@ -6,15 +6,17 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "5000:5000"
|
||||||
environment:
|
environment:
|
||||||
- ASPNETCORE_ENVIRONMENT=Production
|
- ASPNETCORE_ENVIRONMENT=Production
|
||||||
- ConnectionStrings__DefaultConnection=Server=localhost;Database=CentrumDb;User Id=sa;Password=$DB_PASSWORD;TrustServerCertificate=True;
|
- ConnectionStrings__DefaultConnection=Server=db,1433;Database=CentrumDb;User Id=sa;Password=$DB_PASSWORD;TrustServerCertificate=True;
|
||||||
network_mode: host
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mcr.microsoft.com/mssql/server:2019-latest
|
image: mcr.microsoft.com/mssql/server:2019-latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
ports:
|
||||||
|
- "1433:1433"
|
||||||
environment:
|
environment:
|
||||||
SA_PASSWORD: $DB_PASSWORD
|
SA_PASSWORD: $DB_PASSWORD
|
||||||
ACCEPT_EULA: Y
|
ACCEPT_EULA: Y
|
||||||
|
|||||||
Reference in New Issue
Block a user