-
Notifications
You must be signed in to change notification settings - Fork 79
/
docker-compose.yaml
executable file
·72 lines (65 loc) · 1.76 KB
/
docker-compose.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
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
container_name: elasticsearch
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.cors.enabled=true
- http.cors.allow-origin="*"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- observability
kibana:
image: docker.elastic.co/kibana/kibana:7.13.0
container_name: kibana
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: '["http://elasticsearch:9200"]'
networks:
- observability
metricbeat:
image: docker.elastic.co/beats/metricbeat:7.13.0
container_name: metricbeat
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./beats/metric/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml
restart: on-failure
networks:
- observability
heartbeat:
image: docker.elastic.co/beats/heartbeat:7.13.0
container_name: heartbeat
volumes:
- ./beats/heartbeat/heartbeat.yml:/usr/share/heartbeat/heartbeat.yml
environment:
- setup.kibana.host=kibana:5601
networks:
- observability
apm:
image: docker.elastic.co/apm/apm-server-oss:7.13.0
container_name: apm
volumes:
- ./apm/apm-server.yml:/usr/share/apm-server/apm-server.yml
ports:
- "8200:8200"
restart: on-failure
networks:
- observability
networks:
observability:
external: true