-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
235 lines (216 loc) · 5.81 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
version: '3.7'
services:
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
command: ["redis-server","--appendonly", "yes"]
volumes:
- redis-data:/data
redis-commander:
image: rediscommander/redis-commander:latest
container_name: redis-commander
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=root
- HTTP_PASSWORD=123456
ports:
- "8081:8081"
restart: unless-stopped
depends_on:
- "redis"
kafka:
image: obsidiandynamics/kafka
container_name: kafka
environment:
KAFKA_LISTENERS: "INTERNAL://:29092,EXTERNAL://:9092"
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://kafka:29092,EXTERNAL://kafka:9092"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL"
KAFKA_ZOOKEEPER_SESSION_TIMEOUT: "6000"
KAFKA_RESTART_ATTEMPTS: "10"
KAFKA_RESTART_DELAY: "5"
ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: "0"
ports:
- "9092:9092"
- "2181:2181"
restart: unless-stopped
kafdrop:
image: obsidiandynamics/kafdrop
container_name: kafdrop
restart: "no"
ports:
- "9000:9000"
environment:
KAFKA_BROKERCONNECT: "kafka:29092"
JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify"
depends_on:
- "kafka"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
container_name: elasticsearch
environment:
http.host: 0.0.0.0
transport.host: 127.0.0.1
ports:
- "9200:9200"
restart: unless-stopped
volumes:
- datamaster:/usr/share/elasticsearch/data:rw
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.3.0
container_name: kibana
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ports:
- "5601:5601"
restart: unless-stopped
depends_on:
- "elasticsearch"
links:
- "elasticsearch:elasticsearch"
logstash:
image: docker.elastic.co/logstash/logstash-oss:7.3.0
container_name: logstash
volumes:
- ./elkstack/logstash/config:/etc/logstash/conf.d
- logstashdisk:/usr/share/logstash/core
command: -f /etc/logstash/conf.d/
ports:
- "9600:9600"
restart: unless-stopped
depends_on:
- "elasticsearch"
links:
- "elasticsearch:elasticsearch"
discoveryservice:
image: discoveryservice:1.0
container_name: discoveryservice
environment:
JAVA_OPTS: -Xmx2048m -Xms2048m
build:
context: ./discoveryservice
dockerfile: Dockerfile
ports:
- "8761:8761"
configserver:
image: configserver:1.0
container_name: configserver
environment:
JAVA_OPTS: -Xmx2048m -Xms2048m
build:
context: ./configserver
dockerfile: Dockerfile
ports:
- "8000:8000"
tracingserver:
image: tracingserver:1.0
container_name: tracingserver
environment:
JAVA_OPTS: -Xmx2048m -Xms2048m
build:
context: ./tracingserver
dockerfile: Dockerfile
ports:
- "9411:9411"
authservice:
image: authservice:1.0
container_name: authservice
build:
context: ./authservice
ports:
- "8082:80"
restart: unless-stopped
administration:
image: administration:1.0
container_name: administration
build:
context: ./administration
dockerfile: Dockerfile
ports:
- "10000:10000"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: administration
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
gatewayservice:
image: gatewayservice:1.0
container_name: gatewayservice
build:
context: ./gatewayservice
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: gatewayservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
orderservice:
image: orderservice:1.0
container_name: orderservice
build:
context: ./orderservice
dockerfile: Dockerfile
ports:
- "8083:8083"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: orderservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
- "kafka:kafka"
paymentservice:
image: paymentservice:1.0
container_name: paymentservice
build:
context: ./paymentservice
dockerfile: Dockerfile
ports:
- "8084:8084"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: paymentservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
- "kafka:kafka"
deliveryservice:
image: deliveryservice:1.0
container_name: deliveryservice
build:
context: ./deliveryservice
dockerfile: Dockerfile
ports:
- "8085:8085"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: deliveryservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
- "kafka:kafka"
volumes:
redis-data:
datamaster:
driver: local
logstashdisk:
driver: local