-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.analyze.yml
53 lines (48 loc) · 1.06 KB
/
docker-compose.analyze.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
version: "2.3"
networks:
test:
driver: bridge
volumes:
esdata1:
driver: local
services:
es7:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.0
logging:
driver: none
container_name: c-es
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms6g -Xmx6g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- test
healthcheck:
test: "curl --fail http://localhost:9200 || exit 1"
interval: 1s
timeout: 30s
retries: 300
restart: unless-stopped
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.10.0
environment:
ELASTICSEARCH_HOSTS: http://es7:9200
container_name: c-kibana
ports:
- "5601:5601"
volumes:
- ./elasticsearch/kibana.yml:/usr/share/kibana/config/kibana.yml
networks:
- test
depends_on:
es7:
condition: service_healthy
restart: unless-stopped