forked from fullstackhero/blazor-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 802 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: '3.4'
services:
blazorhero:
image: ${DOCKER_REGISTRY-}blazorhero
build:
context: .
dockerfile: src/Server/Dockerfile
environment:
- "ConnectionStrings__DefaultConnection=Server=db;Database=BlazorHero;User=sa;Password=Your_password123;MultipleActiveResultSets=true"
- "ASPNETCORE_Kestrel__Certificates__Default__Password=securePassword123"
- "ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx"
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5005:5005"
- "5006:5006"
depends_on:
- db
restart: on-failure
container_name: blazorhero
db:
image: "mcr.microsoft.com/mssql/server"
environment:
- "SA_PASSWORD=Your_password123"
- "ACCEPT_EULA=Y"
container_name: mssql