-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
108 lines (104 loc) · 2.52 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.9"
services:
mongo:
image: mongo:5
volumes:
- db-mongo:/data/db
container_name: devastation-mongo
restart: always
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=secret
clients:
build: ./clients/
container_name: devastation-clients
volumes:
- ./clients:/node-app
ports:
- 3001:3001
environment:
- DB_HOST=mongo
- DB_PORT=27017
- DB_USER=admin
- DB_PASSWORD=secret
- CLIENTS_PORT=3001
- FRAUDPREVENTION_HOST=fraudprevention
- FRAUDPREVENTION_PORT=3002
- TRANSACTIONS_HOST=transactions
- TRANSACTIONS_PORT=3003
- RABBIT_HOST=rabbit
- RABBIT_PORT=5672
- VI_CRYPTO=30481b581eb237cbf1296c74285e87aa
- KEY_CRYPTO=bd8db53fcc2b8f74400e5366be34b11561485af56dfd7576543698d22917adc4
depends_on:
- mongo
fraudprevention:
build: ./fraudPrevention/
container_name: devastation-fraudPrevention
volumes:
- ./fraudPrevention:/node-app
ports:
- 3002:3002
environment:
- DB_HOST=mongo
- DB_PORT=27017
- DB_USER=admin
- DB_PASSWORD=secret
- CLIENTS_HOST=clients
- CLIENTS_PORT=3001
- FRAUDPREVENTION_PORT=3002
- TRANSACTIONS_HOST=transactions
- TRANSACTIONS_PORT=3003
- RABBIT_HOST=rabbit
- RABBIT_PORT=5672
depends_on:
- mongo
transactions:
build: ./transactions/
container_name: devastation-transactions
volumes:
- ./transactions:/node-app
ports:
- 3003:3003
environment:
- DB_HOST=mongo
- DB_PORT=27017
- DB_USER=admin
- DB_PASSWORD=secret
- CLIENTS_HOST=clients
- CLIENTS_PORT=3001
- FRAUDPREVENTION_HOST=fraudprevention
- FRAUDPREVENTION_PORT=3002
- TRANSACTIONS_PORT=3003
- RABBIT_HOST=rabbit
- RABBIT_PORT=5672
depends_on:
- mongo
gateway:
build: ./apiGateway
container_name: devastation-gateway
volumes:
- ./apiGateway:/node-app
ports:
- 3000:3000
environment:
- DB_HOST=mongo
- DB_PORT=27017
- DB_USER=admin
- DB_PASSWORD=secret
- GATEWAY_PORT=3000
- CLIENTS_HOST=clients
- CLIENTS_PORT=3001
- FRAUDPREVENTION_HOST=fraudprevention
- FRAUDPREVENTION_PORT=3002
- TRANSACTIONS_HOST=transactions
- TRANSACTIONS_PORT=3003
depends_on:
- clients
- fraudprevention
- transactions
- mongo
volumes:
db-mongo: