-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.92 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.92 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3"
services:
mongodb:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: testPassword
container_name: navi_compose_mongodb
ports:
- 27017
navi_auth:
depends_on:
mongodb:
condition: service_started
build:
context: ./Navi-Authentication/.
dockerfile: ./NaviAuth/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+
volumes:
- ./configurations/auth_config.json:/app/publish/appsettings.Development.json
navi_storage:
depends_on:
mongodb:
condition: service_started
build:
context: ./Navi-Storage/.
dockerfile: ./Navi-Storage/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+
volumes:
- ./configurations/storage_config.json:/app/publish/appsettings.Development.json
navi_gateway:
depends_on:
- navi_auth
- navi_storage
- swagger
image: nginx:latest
ports:
- 8080:80
volumes:
- ./configurations/nginx/test.conf:/etc/nginx/conf.d/default.conf
- ./configurations/nginx/location-global.conf:/etc/nginx/conf.d/location-global.conf
swagger_combiner:
build:
context: ./Navi-OpenAPI
dockerfile: ./build/Dockerfile
volumes:
- ./Navi-OpenAPI/out:/swagger/out
swagger:
image: swaggerapi/swagger-ui:latest
depends_on:
swagger_combiner:
condition: service_completed_successfully
environment:
URLS: |
[
{
"url": "./definition/auth-bundle.yaml",
"name": "Navi Authentication Microservice"
},
{
"url": "./definition/storage-bundle.yaml",
"name": "Navi Storage Microservice"
}
]
BASE_URL: /swagger
volumes:
- ./Navi-OpenAPI/out:/usr/share/nginx/html/definition