-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
131 lines (131 loc) · 3.27 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: '3.2'
services:
gateway:
container_name: gatewayService
image: final6671
ports:
- '3004:3004'
command: ['node', '../backend/services/gateway.js']
depends_on: ['redisServer', 'kafka']
environment:
- NODE_ENV=prod
- WEBSOCKET_HOST=websocket
- WEBSOCKET_PORT=3027
deploy:
replicas: 1
restart_policy:
condition: on-failure
fileServer:
container_name: fileServer
image: final6671
command: ['node', '../backend/services/fileServer.js']
depends_on: ['redisServer', 'kafka']
deploy:
replicas: 1
restart_policy:
condition: on-failure
register:
container_name: registerServer
image: final6671
command: ['node', '../backend/services/registerServer.js']
depends_on: ['redisServer', 'kafka']
deploy:
replicas: 1
restart_policy:
condition: on-failure
user:
container_name: userServer
image: final6671
command: ['node', '../backend/services/userService.js']
depends_on: ['redisServer', 'kafka']
environment:
- REDISHOST=redisServer
- DOMAIN=user
- NODE_ENV=prod
deploy:
replicas: 1
restart_policy:
condition: on-failure
auth:
container_name: authService
image: final6671
command: ['node', '../backend/services/authService.js']
depends_on: ['redisServer', 'kafka']
deploy:
replicas: 1
restart_policy:
condition: on-failure
review:
container_name: reviewService
image: final6671
command: ['node', '../backend/services/reviewService.js']
depends_on: ['redisServer', 'kafka']
environment:
- REDISHOST=redisServer
- NODE_ENV=prod
deploy:
replicas: 1
restart_policy:
condition: on-failure
restaurant:
container_name: restaurantService
image: final6671
environment:
- REDISHOST=redisServer
- NODE_ENV=prod
depends_on: ['redisServer', 'kafka']
command: ['node', '../backend/services/restaurantServer.js']
deploy:
replicas: 1
restart_policy:
condition: on-failure
websocket:
container_name: websocketService
image: final6671
depends_on: ['redisServer', 'kafka']
deploy:
replicas: 1
restart_policy:
condition: on-failure
environment:
- REDISHOST=redisServer
- NODE_ENV=prod
command: ['node', '../backend/services/websocket.js']
restaurantConsumer:
container_name: restaurantConsumerService
image: final6671
environment:
- REDISHOST=redisServer
- NODE_ENV=prod
deploy:
replicas: 1
restart_policy:
condition: on-failure
command: ['node', '../backend/services/restaurantConsumer.js']
redisServer:
image: redis
container_name: redisCache
deploy:
replicas: 1
restart_policy:
condition: on-failure
zookeeper:
image: wurstmeister/zookeeper
ports:
- '2181:2181'
deploy:
replicas: 1
restart_policy:
condition: on-failure
kafka:
image: wurstmeister/kafka
ports:
- '9092:9092'
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: '9092'
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
deploy:
replicas: 1
restart_policy:
condition: on-failure