forked from stelace/stelace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.monitoring.yml
59 lines (57 loc) · 1.54 KB
/
docker-compose.monitoring.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
version: '2.2'
# `depends_on` `condition` not available anymore in v3
services:
delete-indexes:
image: playdingnow/delete-outdated-es-indexes:1.3
environment:
- eshost=elasticsearch
- esport=9800
- esmaxdays=15
elasticsearch:
build:
context: "."
dockerfile: Dockerfile.elasticsearch
environment:
- http.host=0.0.0.0
- transport.host=localhost
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- 9800:9200
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9200']
interval: 10s
timeout: 5s
retries: 3
volumes:
- es-v7.3.2-data_apm:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.3.2
ports:
- 5601:5601
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5601']
interval: 10s
timeout: 5s
retries: 3
depends_on:
elasticsearch:
condition: service_healthy
apm-server:
image: docker.elastic.co/apm/apm-server:7.3.2
ports:
- 8200:8200
environment:
- output.elasticsearch.hosts=['http://elasticsearch:9200']
- apm-server.host="0.0.0.0:8200"
- apm-server.secret_token="xxVpmQB2HMzCL9PgBHVrnxjNXXw5J7bd79DFm6sjBJR5HPXDhcF8MSb3vv4bpg44"
- setup.kibana.host="kibana:5601"
- setup.template.enabled=true
- logging.to_files=false
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_healthy
volumes:
es-v7.3.2-data_apm: