-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
209 lines (195 loc) · 5.31 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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
services:
keycloak:
image: keycloak/keycloak:25.0
hostname: keycloak
command: start --https-certificate-file=/cert/fullchain.pem --https-certificate-key-file=/cert/privkey.pem
ports:
- "8443:8443"
env_file:
- ./envs/keycloak.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
rabbitmq:
image: rabbitmq:management-alpine
hostname: rabbitmq
restart: always
env_file:
- ./envs/rabbitmq.env
environment:
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit log_levels [{connection,error},{default,error}] disk_free_limit 2147483648
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
- ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ${CERTIFICATE_CHAIN_PATH}:/cert/chain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
- ${CERTIFICATE_CERT_PATH}:/cert/cert.pem:ro
ports:
- "15672:15672"
- "15671:15671"
- "5672:5672"
- "5671:5671"
xuser:
hostname: xuser
image: cr.b1-it.ru/planx/x-user:main
ports:
- "25001:25001"
depends_on:
- rabbitmq
env_file:
- ./envs/common.env
- ./envs/x-user.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xmodel:
hostname: xmodel
image: cr.b1-it.ru/planx/x-model:main
ports:
- "25002:25002"
depends_on:
- rabbitmq
env_file:
- ./envs/common.env
- ./envs/x-model.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xsyncagent:
image: cr.b1-it.ru/planx/x-syncagent-py:main
ports:
- "25200:25200"
depends_on:
- rabbitmq
env_file:
- ./envs/common.env
- ./envs/x-syncagent.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xlog:
hostname: xlog
image: cr.b1-it.ru/planx/x-log:main
ports:
- "25003:25003"
depends_on:
- rabbitmq
env_file:
- ./envs/common.env
- ./envs/x-log.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xobject:
hostname: xobject
image: cr.b1-it.ru/planx/x-object:main
ports:
- "25010:25010"
depends_on:
- rabbitmq
env_file:
- ./envs/common.env
- ./envs/x-object.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xtransfer:
hostname: xtransfer
image: cr.b1-it.ru/planx/x-transfer-py:main
ports:
- "25011:25011"
depends_on:
- rabbitmq
env_file:
- ./envs/common.env
- ./envs/x-transfer.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xmath:
hostname: xmath
image: cr.b1-it.ru/planx/x-math:main
ports:
- "25013:25013"
env_file:
- ./envs/common.env
- ./envs/x-math.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xks:
hostname: xks
image: cr.b1-it.ru/planx/x-ks:main
ports:
- "25012:25012"
depends_on:
- rabbitmq
env_file:
- ./envs/common.env
- ./envs/x-ks.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xforecasting:
hostname: xforecasting
image: cr.b1-it.ru/planx/x-forecasting:main
ports:
- "25014:25014"
env_file:
- ./envs/common.env
- ./envs/x-forecasting.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
xtransfer-agent:
image: cr.b1-it.ru/planx/x-transfer-agent:main
env_file:
- ./envs/common.env
- ./envs/x-transfer-agent.env
frontend:
image: cr.b1-it.ru/planx/frontend:main
ports:
- "3000:80"
env_file:
- ./envs/frontend.env
volumes:
- ${CERTIFICATE_FULLCHAIN_PATH}:/cert/fullchain.pem:ro
- ${CERTIFICATE_PRIVKEY_PATH}:/cert/privkey.pem:ro
deploy:
resources:
limits:
cpus: "0.20"
gateway:
image: cr.b1-it.ru/planx/gateway:main
depends_on:
- xuser
- xmodel
- xsyncagent
- xobject
- xtransfer
- xmath
- xks
- xforecasting
- frontend
ports:
- "25000:80"
environment:
- FRONTEND_HOST=frontend:80
- FRONTEND_PROTOCOL=http
- XKS_HOST=xks:25012
- XKS_PROTOCOL=https
- XMATH_HOST=xmath:25013
- XMATH_PROTOCOL=https
- XMODEL_HOST=xmodel:25002
- XMODEL_PROTOCOL=https
- XOBJECT_HOST=xobject:25010
- XOBJECT_PROTOCOL=https
- XSYNCAGENT_HOST=xsyncagent:25200
- XSYNCAGENT_PROTOCOL=https
- XTRANSFER_HOST=xtransfer:25011
- XTRANSFER_PROTOCOL=https
- XUSER_HOST=xuser:25001
- XUSER_PROTOCOL=https
- XFORECASTING_HOST=xforecasting:25014
- XFORECASTING_PROTOCOL=https