-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (68 loc) · 1.57 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
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
77
78
79
80
version: '3'
services:
mongo:
build:
context: ./database
# volumes:
# - mongodata:/data/db
# - mongoconfig:/data/configdb
ports:
- "27017:27017"
monitoring:
build:
context: ./MonitoringService
depends_on:
- mongo
environment:
- NODE_SERVER_PORT=3001
- DB_HOST=mongo
- DB_PORT=27017
- DB_NAME=trivago_audit
- BUSINESS_KEY=businesskey
volumes:
- ./MonitoringService:/usr/src/app
- /usr/src/app/node_modules
business:
build:
context: ./BusinessLogic
depends_on:
- mongo
- monitoring
environment:
- NODE_SERVER_PORT=3000
- DB_HOST=mongo
- DB_PORT=27017
- DB_NAME=trivago_dev
- TESTING_DB_NAME=trivago_test
- MONITOR_URI=http://monitoring:3001
- API_GATEWAY_KEY=apigateway
- BUSINESS_KEY=businesskey
- PUBLIC_ACCESS_KEY=public-api-secret
- PRIVATE_ACCESS_KEY=private-api-secret
volumes:
- ./BusinessLogic:/usr/src/app
- /usr/src/app/node_modules
gateway:
build:
context: ./ApiGateWay
depends_on:
- mongo
- business
environment:
- API_GW_PORT=8080
- DB_HOST=mongo
- DB_PORT=27017
- DB_NAME=trivago_gw
- TESTING_DB_NAME=trivago_gw_test
- BUSINESS_SERVICE_URL=http://business:3000
- API_GATEWAY_KEY=apigateway
ports:
- "8080:8080"
volumes:
- ./ApiGateWay:/usr/src/app
- /usr/src/app/node_modules
# volumes:
# mongodata:
# driver: local
# mongoconfig:
# driver: local