-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
206 lines (178 loc) · 3.97 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
version: '3.5'
volumes:
redisdata:
driver: local
networks:
cyrulik:
driver: bridge
services:
zipkin-service:
container_name: zipkin-service
env_file:
- .docker.env
image: openzipkin/zipkin:2.10.1
environment:
STORAGE_TYPE: mem
restart: always
ports:
- "${CONFIG_SERVICE_PORT_ZIPKIN}:9411"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9411/health"]
interval: 60s
timeout: 10s
retries: 10
networks:
- cyrulik
cassandra-account:
container_name: cassandra-account
env_file:
- .docker.env
image: spotify/cassandra
ports:
- "${CONFIG_DATABASE_PORT_ACCOUNT}:9042"
healthcheck:
test: ["CMD", "cqlsh", "--execute", "show version;quit"]
interval: 60s
timeout: 10s
retries: 5
networks:
- cyrulik
cassandra-subscription:
container_name: cassandra-subscription
env_file:
- .docker.env
image: spotify/cassandra
ports:
- "${CONFIG_DATABASE_PORT_SUBSCRIPTION}:9042"
healthcheck:
test: ["CMD", "cqlsh", "--execute", "show version;quit"]
interval: 60s
timeout: 10s
retries: 5
networks:
- cyrulik
zookeeper:
image: wurstmeister/zookeeper
env_file:
- .docker.env
container_name: zookeeper
restart: always
healthcheck:
test: ["CMD-SHELL", "echo ruok | nc localhost 2181 | grep imok"]
interval: 60s
timeout: 10s
retries: 5
ports:
- "${CONFIG_SERVICE_PORT_ZOOKEEPER}:2181"
networks:
- cyrulik
kafka:
image: wurstmeister/kafka
container_name: kafka
hostname: kafka
env_file:
- .docker.env
ports:
- "${CONFIG_SERVICE_PORT_KAFKA}:9092/tcp"
depends_on:
- zookeeper
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9092" ]
start_period: 20s
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cyrulik
redis:
image: redis:4-alpine
env_file:
- .docker.env
container_name: redis
command: ["redis-server", "--appendonly", "yes"]
ports:
- "${CONFIG_SERVICE_PORT_REDIS}:6379"
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 30
networks:
- cyrulik
account-service:
image: cyrulik/account
container_name: account-service
ports:
- "${CONFIG_SERVICE_PORT_ACCOUNT}:5000"
env_file:
- .docker.env
networks:
- cyrulik
config-service:
image: cyrulik/config
container_name: config-service
ports:
- "${CONFIG_SERVICE_PORT_CONFIG}:8880"
env_file:
- .docker.env
networks:
- cyrulik
gateway-service:
image: cyrulik/gateway
container_name: gateway-service
ports:
- "${CONFIG_SERVICE_PORT_GATEWAY}:5002"
env_file:
- .docker.env
networks:
- cyrulik
monitoring-service:
image: cyrulik/monitoring
container_name: monitoring-service
ports:
- "${CONFIG_SERVICE_PORT_MONITORING}:8882"
env_file:
- .docker.env
networks:
- cyrulik
registry-service:
image: cyrulik/registry
container_name: registry-service
ports:
- "${CONFIG_SERVICE_PORT_REGISTRY}:8761"
env_file:
- .docker.env
networks:
- cyrulik
subscription-service:
image: cyrulik/subscription
container_name: subscription-service
ports:
- "${CONFIG_SERVICE_PORT_SUBSCRIPTION}:5001"
env_file:
- .docker.env
networks:
- cyrulik
turbine-service:
image: cyrulik/turbine
container_name: turbine-service
ports:
- "${CONFIG_SERVICE_PORT_TURBINE}:8881"
env_file:
- .docker.env
networks:
- cyrulik
web:
build:
context: ./web
args:
env: "${APP_ENV}"
volumes:
- ./web:/var/www
ports:
- "${CONFIG_WEB_PORT}:80"
env_file:
- .docker.env
networks:
- cyrulik