-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
48 lines (48 loc) · 1.77 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
services:
api:
build: ./Api
depends_on:
identityserver:
condition: service_started
entrypoint: /bin/sh -c "update-ca-certificates && dotnet Api.dll"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:5003;http://+:5002
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/localhost.pfx
- AUTHENTICATION__AUTHORITY=https://identityserver:5001
ports:
- "5002:5002"
- "5003:5003"
volumes:
- ./localhost.pfx:/https/localhost.pfx:ro
- ./localhost.crt:/usr/local/share/ca-certificates/localhost.crt:ro
consoleapplication:
build: ./ConsoleApplication
depends_on:
api:
condition: service_started
identityserver:
condition: service_started
entrypoint: /bin/sh -c "sleep 10 && update-ca-certificates && dotnet ConsoleApplication.dll"
environment:
- DOTNET_ENVIRONMENT=Development
- API_URL=https://api:5003
- AUTHENTICATION__AUTHORITY=https://identityserver:5001
volumes:
- ./localhost.pfx:/https/localhost.pfx:ro
- ./localhost.crt:/usr/local/share/ca-certificates/localhost.crt:ro
identityserver:
build: ./IdentityServer
entrypoint: /bin/sh -c "update-ca-certificates && dotnet IdentityServer.dll"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:5001;http://+:5000
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/localhost.pfx
ports:
- "5000:5000"
- "5001:5001"
volumes:
- ./localhost.pfx:/https/localhost.pfx:ro
- ./localhost.crt:/usr/local/share/ca-certificates/localhost.crt:ro