forked from lionliu/Flogi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (71 loc) · 2.06 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
version: "3.8"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
container_name: elasticsearch
ports:
- "9200:9200"
networks:
- elastic
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=false
- cluster.initial_master_nodes=elasticsearch
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
kibana:
image: docker.elastic.co/kibana/kibana:7.9.2
container_name: kibana
links:
- "elasticsearch"
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
networks:
- elastic
depends_on:
- "elasticsearch"
- "fluentd"
- "metricbeat"
fluentd:
container_name: fluentd
build: ./fluentd
ports:
- 24224:24224
- 24224:24224/udp
volumes:
- ./fluentd/log:/fluentd/log
networks:
- elastic
metricbeat:
image: docker.elastic.co/beats/metricbeat:7.9.2
container_name: metricbeat
user: root
environment:
- setup.kibana.host=kibana:5601
- setup.dashboards.enable=true
- system.hostfs=/hostfs
networks:
- elastic
volumes:
- ./metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml
- ./metricbeat/modules.d/:/usr/share/metricbeat/modules.d/
- /var/run/docker.sock:/var/run/docker.sock
- /:/hostfs:ro
restart: on-failure
clusterizer:
container_name: clusterizer
build: ./clusterizer
volumes:
- ./clusterizer:/home/jovyan/work/
# environment:
# - NotebookApp.password=flogi
ports:
- "8888:8888"
networks:
- elastic
networks:
elastic:
driver: bridge