forked from neozhu/CleanArchitectureWithBlazorServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.61 KB
/
docker-compose.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3.8'
services:
dashboard:
image: ${DOCKER_REGISTRY-}blazorserver
build:
context: .
dockerfile: .
environment:
- ASPNETCORE_ENVIRONMENT=Development
- UseInMemoryDatabase=false
- DatabaseSettings__DBProvider=mssql
- DatabaseSettings__ConnectionString=Server=sqldb;Database=BlazorDashboardDb;User=sa;Password=Password@123;MultipleActiveResultSets=true
- AppConfigurationSettings__ApplicationUrl=https://architecture.blazorserver.com
- SmtpClientOptions__Server=
- SmtpClientOptions__Port=
- SmtpClientOptions__User=
- SmtpClientOptions__Password=
- ASPNETCORE_URLS=https://+:443;http://+:80
#- ASPNETCORE_Kestrel__Certificates__Default__Password=Password@123
#- ASPNETCORE_Kestrel__Certificates__Default__Path=/root/.aspnet/https/CleanArchitecture.Blazor.Server.UI.pfx
volumes:
- ${APPDATA}\microsoft\UserSecrets\:/root/.microsoft/usersecrets:ro
- ~/.aspnet/https:/root/.aspnet/https:ro
ports:
- "5000:80"
- "5001:443"
depends_on:
- sqldb
restart: on-failure
sqldb:
image: "mcr.microsoft.com/mssql/server:2019-latest"
environment:
- "SA_PASSWORD=Password@123"
- "ACCEPT_EULA=Y"
- MSSQL_DATA_DIR=/var/opt/mssql/data
- MSSQL_LOG_DIR=/var/opt/mssql/log
- MSSQL_BACKUP_DIR=/var/opt/mssql/backup
ports:
- "1433:1433"
volumes:
- ${USERPROFILE}\mssql_data:/var/opt/mssql/data
- ${USERPROFILE}\mssql_log:/var/opt/mssql/log
- ${USERPROFILE}\mssql_backup:/var/opt/mssql/backup
volumes:
mssql_data:
mssql_log:
mssql_backup: