-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
178 lines (163 loc) · 3.67 KB
/
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: "3.8"
services:
account_service:
image: dropdatabase233/account_service
build: ./account_service
ports:
- "3080:8000"
deploy:
replicas: 3
restart_policy:
condition: any
networks:
- backend_network
analytics_service:
image: dropdatabase233/analytics_service
build: ./analytics_service
ports:
- "3000:3000"
networks:
- backend_network
deploy:
replicas: 1
restart_policy:
condition: any
authentication_service:
image: dropdatabase233/authentication_service
build: ./authentication_service
ports:
- "3001:3000"
networks:
- backend_network
deploy:
replicas: 3
restart_policy:
condition: any
authorization_service:
image: dropdatabase233/authorization_service
build: ./authorization_service
ports:
- "3002:3000"
networks:
- backend_network
deploy:
replicas: 3
restart_policy:
condition: any
content_storage_service:
image: dropdatabase233/content_storage_service
build: ./content_storage_service
ports:
- "3003:3000"
networks:
- backend_network
deploy:
replicas: 3
restart_policy:
condition: any
# placement:
# constraints: [node.labels.type == queue]
payment_gateway_service:
image: dropdatabase233/payment_gateway_service
build: ./payment_gateway_service
ports:
- "3004:3000"
networks:
- backend_network
deploy:
replicas: 3
restart_policy:
condition: any
payment_service:
image: dropdatabase233/payment_service
build: ./payment_service
ports:
- "3005:3000"
networks:
- backend_network
deploy:
replicas: 3
restart_policy:
condition: any
personalization_service:
image: dropdatabase233/personalization_service
build: ./personalization_service
ports:
- "3006:3000"
networks:
- backend_network
deploy:
replicas: 1
restart_policy:
condition: any
rating_service:
image: dropdatabase233/rating_service
build: ./rating_service
ports:
- "3007:3000"
networks:
- backend_network
deploy:
replicas: 1
restart_policy:
condition: any
stream_service:
image: dropdatabase233/stream_service
build: ./stream_service
ports:
- "3008:3000"
networks:
- backend_network
deploy:
replicas: 1
restart_policy:
condition: any
subscription_service:
image: dropdatabase233/subscription_service
build: ./subscription_service
ports:
- "3009:3000"
networks:
- backend_network
deploy:
replicas: 1
restart_policy:
condition: any
upload_service:
image: dropdatabase233/upload_service
build: ./upload_service
ports:
- "3010:3000"
networks:
- backend_network
deploy:
replicas: 1
restart_policy:
condition: any
api_gateway_user_management:
image: dropdatabase233/api_gateway_user_management
build: ./api_gateway_user_management
ports:
- "3020:3000"
networks:
- backend_network
restart: always
api_gateway_content_management:
image: dropdatabase233/api_gateway_content_management
build: ./api_gateway_content_management
ports:
- "3021:3000"
networks:
- backend_network
restart: always
api_gateway_payment_service:
image: dropdatabase233/api_gateway_payment_service
build: ./api_gateway_payment_service
ports:
- "3022:3000"
networks:
- backend_network
restart: always
networks:
backend_network:
driver: overlay