forked from imyoungyang/docker-swarm-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 839 Bytes
/
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
version: '3'
services:
elasticsearch:
image: youngbe/docker-swarm-elasticsearch:5.5.0
environment:
- SERVICE_NAME=elasticsearch
- cluster.name=elasticsearch-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -XX:-AssumeMP"
ports:
- 9200:9200
- 9300:9300
networks:
- elastic_cluster
deploy:
mode: replicated
replicas: 3
resources:
limits:
memory: 1g
kibana:
image: docker.elastic.co/kibana/kibana:5.5.0
networks:
- elastic_cluster
ports:
- "5601:5601"
depends_on:
- elasticsearch
environment:
ELASTICSEARCH_URL: http://192.168.100.20:9200
networks:
elastic_cluster:
driver: overlay
ipam:
driver: default
config:
- subnet: 10.0.10.0/24