-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-base.yaml
209 lines (200 loc) · 4.88 KB
/
docker-compose-base.yaml
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
version: "3.1"
services:
redis-acp:
image: redis:6.0.14
container_name: redis-acp
restart: always
ports:
- "6379:6379"
networks:
- elk
# command: redis-server --requirepass ${pwd} --notify-keyspace-events Eglx
zookeeper:
image: zookeeper:3.7.0
hostname: zookeeper
container_name: zookeeper
restart: always
networks:
- elk
ports:
- "21810:2181"
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888;2181
kafka0:
image: wurstmeister/kafka:2.13-2.7.0
hostname: kafka0
container_name: kafka0
restart: always
ports:
- "9092:9092"
networks:
- elk
environment:
# add the entry "127.0.0.1 kafka0" to your /etc/hosts file
KAFKA_LISTENERS: "PLAINTEXT://0.0.0.0:9092"
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://10.100.106.116:9092"
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 0
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
# KAFKA_HEAP_OPTS: "-Xmx1G -Xms1G"
EXTRA_ARGS: "-name kafkaServer -loggc"
# JMX_PORT: 9999
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
kafka-manager:
image: sheepkiller/kafka-manager
container_name: kafka-manager
restart: always
networks:
- elk
environment:
ZK_HOSTS: zookeeper:2181
ports:
- "9000:9000"
expose:
- 9000
depends_on:
- zookeeper
zipkin-server:
image: openzipkin/zipkin:2.23.2
container_name: zipkin-server
restart: always
networks:
- elk
environment:
- KAFKA_BOOTSTRAP_SERVERS=kafka0:9092
- STORAGE_TYPE=elasticsearch
- ES_HOSTS=elasticsearch-acp:9200
ports:
- "9411:9411"
depends_on:
- elasticsearch-acp
- kafka0
zipkin-dependencies:
image: openzipkin/zipkin-dependencies:2.6.3
container_name: zipkin-dependencies
restart: always
networks:
- elk
environment:
- STORAGE_TYPE=elasticsearch
- ES_HOSTS=elasticsearch-acp:9200
depends_on:
- elasticsearch-acp
elasticsearch-acp:
image: elasticsearch:7.12.0
container_name: elasticsearch-acp
hostname: elasticsearch-acp
restart: always
networks:
- elk
ports:
- "9200:9200"
- "9300:9300"
environment:
- TZ='Asia/Shanghai'
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./es1/elasticsearch/data:/usr/share/elasticsearch/data
- ./es1/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
kibana-acp:
image: kibana:7.12.0
container_name: kibana-acp
restart: always
networks:
- elk
ports:
- "5601:5601"
volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
environment:
ELASTICSEARCH_URL: http://elasticsearch-acp:9200
depends_on:
- elasticsearch-acp
logstash-acp:
image: logstash:7.12.0
container_name: logstash-acp
restart: always
networks:
- elk
ports:
- "5044:5044"
- "9600:9600"
volumes:
- ./logstash/config-dir:/config-dir
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
command: logstash -f /config-dir
environment:
XPACK_MONITORING_ENABLED: "true"
XPACK_MONITORING_ELASTICSEARCH_URL: http://elasticsearch-acp:9200
depends_on:
- elasticsearch-acp
- kafka0
# zoonavigator-api:
# image: docker.io/elkozmon/zoonavigator-api
# environment:
# SERVER_HTTP_PORT: 9005
# networks:
# - elk
# restart: unless-stopped
# depends_on:
# - zookeeper
#
# zoonavigator-web:
# image: docker.io/elkozmon/zoonavigator-web
# ports:
# - "8004:8000"
# networks:
# - elk
# environment:
# API_HOST: "zoonavigator-api"
# API_PORT: 9005
# restart: unless-stopped
# links:
# - zoonavigator-api
# depends_on:
# - zoonavigator-api
#
# prometheus:
# image: prom/prometheus
# container_name: prometheus
# networks:
# - elk
# ports:
# - 9090:9090
# volumes:
# - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
#
# grafana:
# image: grafana/grafana
# container_name: grafana
# networks:
# - elk
# ports:
# - 3000:3000
# depends_on:
# - prometheus
# environment:
# - GF_AUTH_ANONYMOUS_ENABLED=true
# - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
#
# setup_grafana_datasource:
# image: appropriate/curl
# container_name: setup_grafana_datasource
# networks:
# - elk
# depends_on:
# - grafana
# volumes:
# - ./prometheus/create-datasource-and-dashboard.sh:/create.sh:ro
# command: /create.sh
networks:
elk: