-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
193 lines (182 loc) · 4.24 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
version: '3.4'
services:
elasticsearch:
build:
context: elasticsearch/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- type: bind
source: ./elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
- type: volume
source: elasticsearch
target: /usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_PASSWORD: changeme
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 30s
retries: 3
kibana:
build:
context: kibana/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- type: bind
source: ./kibana/config/kibana.yml
target: /usr/share/kibana/config/kibana.yml
read_only: true
ports:
- "5601:5601"
depends_on:
- elasticsearch
db:
image: postgres:latest
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=postgres
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
expose:
- "2181"
kafka:
image: wurstmeister/kafka:latest
ports:
- "9092:9092"
expose:
- 9093
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_CREATE_TOPICS: "client:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
- db
############################################################
client-service:
container_name: clientservice
build:
context: clientService
image: clientservice:latest
environment:
- locale=+01:00
expose:
- 8080
ports:
- "8080:8080"
links:
- db
- time-service
- elasticsearch
depends_on:
- elasticsearch
- kafka
- time-service
# client-service-us:
# container_name: clientservice-us
# image: clientservice:latest
# environment:
# - locale=EST
# expose:
# - 8080
# ports:
# - "9080:8080"
# links:
# - db
# - time-service
# - elasticsearch
# depends_on:
# - elasticsearch
# - kafka
# - time-service
############################################################
time-service:
container_name: timeservice
build:
context: TimeService
image: timeservice:latest
expose:
- 8081
ports:
- "8081:8081"
# atomic-time-service:
# container_name: atomicclock
# build:
# context: TimeService
# image: timeservice:latest
# expose:
# - 8081
# ports:
# - "9081:8081"
############################################################
analyst-service:
container_name: analystservice
build:
context: analystservice
image: analystservice:latest
depends_on:
- elasticsearch
- kibana
ports:
- "9500:9300"
# streamsets:
# image: streamsets/datacollector
# ports:
# - "18630:18630"
kafka-connector:
container_name: kafkaconnector
build:
context: kafkaconnector/nodejs/.
image: kafkaconnector:latest
depends_on:
- client-service
#- client-service-us
launch-barebone:
image: dadarek/wait-for-dependencies
depends_on:
- kafka
- zookeeper
- elasticsearch
- kibana
- db
command:
- zookeeper:2181
- kafka:9092
- db:5432
- elasticsearch:9200
- kibana:5601
launch-services:
image: dadarek/wait-for-dependencies
depends_on:
- kafka-connector
- client-service
#- client-service-us
- time-service
- analyst-service
#- atomic-time-service
command:
#- atomic-time-service:8081
- time-service:8081
- client-service:8080
#- client-service-us:8080
- analyst-service:9300
volumes:
elasticsearch: