-
Notifications
You must be signed in to change notification settings - Fork 104
/
docker-compose.yml
43 lines (41 loc) · 1.38 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
version: '3.8'
services:
visitormanagement:
image: visitormanagement/web
build:
context: .
dockerfile: ./Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- UseInMemoryDatabase=false
- ConnectionStrings__DefaultConnection=Server=sqldb;Database=visitormanagementdb;User=sa;Password=Password@123;MultipleActiveResultSets=true;Trust Server Certificate=False;Encrypt=false;
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=Password@123
- ASPNETCORE_Kestrel__Certificates__Default__Path=/root/.aspnet/https/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: