-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ymlv7-healthcheck
83 lines (77 loc) · 1.81 KB
/
docker-compose.ymlv7-healthcheck
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
74
75
76
77
78
79
80
81
82
83
#elk:
# image: sebp/elk
# ports:
# - "15601:5601"
# - "19200:9200"
# - "15044:5044"
version: '2'
services:
elasticsearch_master:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0
container_name: elasticsearch_master
environment:
- cluster.name=docker-cluster
# - http.host=0.0.0.0
# - transport.host=127.0.0.1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch_master"
- "network.host=_site_"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- esnet
elasticsearch_node1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0
container_name: elasticsearch_node1
depends_on:
- elasticsearch_master
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 2s
timeout: 20s
retries: 1
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- discovery.zen.ping.unicast.hosts=elasticsearch_master
# - http.host=0.0.0.0
# - transport.host=127.0.0.1
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata2:/usr/share/elasticsearch/data
networks:
- esnet
logstash-kibana:
build: .
image: wsoyinka/elkv3
container_name: logstash-kibana
depends_on: ['elasticsearch_node1']
ports:
- "35601:5601"
# - "39200:9200"
- "35044:5044"
environment:
- ELASTICSEARCH_START=0
- CLUSTER_NAME=docker-cluster
networks:
- esnet
volumes:
esdata1:
driver: local
esdata2:
driver: local
networks:
esnet:
driver: bridge