forked from yidinghan/eak
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
56 lines (48 loc) · 1.63 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
version: "3"
services:
apm-server:
container_name: apm-server-container
image: store/elastic/apm-server:7.2.1
user: apm-server
ports:
- "7200:7200"
depends_on: ["elasticsearch", "kibana"]
volumes:
- ./apm-conf/apm-server.yml:/usr/share/apm-server/apm-server.yml
command: /usr/share/apm-server/apm-server -e -c /usr/share/apm-server/apm-server.yml -E apm-server.host=apm-server:7200 --strict.perms=false
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http://localhost:7200/polls"]
retries: 6
elasticsearch:
container_name: elasticsearch-container
image: docker.io/elasticsearch:7.2.1
environment:
discovery.type: single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD", "curl","-s" ,"-f", "http://localhost:9200/_cat/health"]
kibana:
container_name: kibana-container
hostname: kibana
image: docker.io/kibana:7.2.1
#volumes:
# - ./kibana.yml:/usr/share/kibana/kibana.yml
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports: ['5601:5601']
# depends_on: ["elasticsearch"]
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http://localhost:5601/"]
retries: 6
volumes:
esdata:
driver: local