-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·137 lines (130 loc) · 3.48 KB
/
docker-compose.yml
File metadata and controls
executable file
·137 lines (130 loc) · 3.48 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: "3.4"
services:
db:
image: dolthub/dolt-sql-server
ports:
- 3306
volumes:
- ./db/sql:/docker-entrypoint-initdb.d
py-srv:
build: py-srv
command: sh -c "/wait && python app.py"
environment:
- WAIT_HOSTS=db:3306
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=60
- WAIT_HOST_CONNECT_TIMEOUT=30
depends_on:
- db
- es1
- es2
- es3
- kibana
links:
- "db:db"
- "es1:es1"
- "es2:es2"
- "es3:es3"
es1:
image: elasticsearch:${STACK_VERSION}
container_name: es1
hostname: es1
restart: unless-stopped
healthcheck:
test: "exit 0"
environment:
- "node.store.allow_mmap=false"
- "node.name=es1"
- "bootstrap.memory_lock=true"
- "cluster.name=es-cluster"
- "discovery.seed_hosts=es2,es3"
- "cluster.initial_master_nodes=es1,es2,es3"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.index.number_of_replicas=0"
- "xpack.security.enabled=false"
- "xpack.security.http.ssl.enabled=false"
- "xpack.security.transport.ssl.enabled=false"
- "xpack.ml.enabled=false"
- "xpack.graph.enabled=false"
- "xpack.watcher.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
# volumes:
# - ./es/es1/data:/usr/share/elasticsearch/data
# - ./es/es1/log:/usr/share/elasticsearch/log
es2:
image: elasticsearch:${STACK_VERSION}
container_name: es2
hostname: es2
restart: unless-stopped
healthcheck:
test: "exit 0"
environment:
- "node.store.allow_mmap=false"
- "node.name=es2"
- "bootstrap.memory_lock=true"
- "cluster.name=es-cluster"
- "discovery.seed_hosts=es3,es1"
- "cluster.initial_master_nodes=es1,es2,es3"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.index.number_of_replicas=0"
- "xpack.security.enabled=false"
- "xpack.security.http.ssl.enabled=false"
- "xpack.security.transport.ssl.enabled=false"
- "xpack.ml.enabled=false"
- "xpack.graph.enabled=false"
- "xpack.watcher.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9201:9200
# volumes:
# - ./es/es2/data:/usr/share/elasticsearch/data
# - ./es/es2/log:/usr/share/elasticsearch/log
es3:
image: elasticsearch:${STACK_VERSION}
container_name: es3
hostname: es3
restart: unless-stopped
healthcheck:
test: "exit 0"
environment:
- "node.store.allow_mmap=false"
- "node.name=es3"
- "bootstrap.memory_lock=true"
- "cluster.name=es-cluster"
- "discovery.seed_hosts=es2,es1"
- "cluster.initial_master_nodes=es1,es2,es3"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.index.number_of_replicas=0"
- "xpack.security.enabled=false"
- "xpack.security.http.ssl.enabled=false"
- "xpack.security.transport.ssl.enabled=false"
- "xpack.ml.enabled=false"
- "xpack.graph.enabled=false"
- "xpack.watcher.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9202:9200
# volumes:
# - ./es/es3/data:/usr/share/elasticsearch/data
# - ./es/es3/log:/usr/share/elasticsearch/log
kibana:
image: kibana:${STACK_VERSION}
healthcheck:
test: "exit 0"
environment:
- "ELASTICSEARCH_HOSTS=http://es1:9200"
- "SERVER_NAME=127.0.0.1"
ports:
- 5601:5601
depends_on:
- es1
- es2
- es3