-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.45 KB
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
50
51
52
53
54
version: '3.4'
services:
mongo:
image: mongo
ports:
- "27017:27017"
volumes:
- 'mongo:/data/db'
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
nasgrad.api:
depends_on:
- 'mongo'
build:
context: .
dockerfile: NasGrad.API/Dockerfile
args:
APPLICATION_SETTINGS: "appsettings-api.json"
MONGODB_USERNAME: ${MONGODB_USERNAME}
MONGODB_PASSWORD: ${MONGODB_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
environment:
ASPNETCORE_URLS: ${ASPNETCORE_URLS}
ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_PATH}
image:
nasgradapi
ports:
- "8081:443"
volumes:
- ${CERTIFICATE_PATH}:/root/.dotnet/https
nasgrad.web:
build:
context: .
dockerfile: NasGrad.Web/Dockerfile
args:
ADDRESS_OF_API: https://${HOST_CURRENT_ADDRESS}:8081
image:
nasgradweb
ports:
- "443:443"
volumes:
- ${CERTIFICATE_PATH}:/root/.dotnet/https
environment:
ASPNETCORE_URLS: ${ASPNETCORE_URLS}
ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_PATH}
volumes:
mongo: