-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
39 lines (37 loc) · 1.03 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
version: "3.9"
services:
web:
image: ${REGISTRY:-mosaik}/event-management:${TAG:-latest}
depends_on:
- sqlserver
build: .
ports:
- "127.0.0.1:443:443"
volumes:
- "./aspnetapp.pfx:/https/aspnetapp.pfx:ro"
environment:
ASPNETCORE_ENVIRONMENT: Staging # to seed the database
ASPNETCORE_URLS: https://0.0.0.0:443
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
ASPNETCORE_Kestrel__Certificates__Default__Password: secret
ConnectionStrings__EventManagement: Server=sqlserver;Database=EventManagement;User ID=sa;Password=Start123
deploy:
resources:
limits:
memory: 2G
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
user: root
ports:
- "127.0.0.1:1433:1433"
volumes:
- "mssqldata:/var/opt/mssql/data"
environment:
ACCEPT_EULA: Y
SA_PASSWORD: Start123
deploy:
resources:
limits:
memory: 2G
volumes:
mssqldata: