-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (90 loc) · 2.09 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#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
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
elastic-stack:
build: .
image: wsoyinka/elastic-stack
container_name: elastic-stack
# depends_on: ['elasticsearch_node1']
ports:
- "39200:9200"
# - "35601:5601"
# - "39200:9200"
- "35044:5044"
environment:
# - ELASTICSEARCH_START=0
- CLUSTER_NAME=docker-cluster
volumes:
- esdata3:/var/lib/elasticsearch
networks:
- esnet
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
volumes:
- ./nginx/config:/etc/nginx/conf.d:ro,Z
- ./nginx/htpasswd.users:/etc/nginx/htpasswd.users:ro,Z
ports:
- "5601:5601"
depends_on:
- elastic-stack
networks:
- esnet
volumes:
esdata1:
driver: local
esdata2:
driver: local
esdata3:
driver: local
networks:
esnet:
driver: bridge