Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rancher elasticsearch 6.3.1
version: '2'
volumes:
esdata:
external: true
driver: local
edatanode:
external: true
driver: local
services:
elasticsearch:
image: yourepository/elasticsearch/elasticsearch:6.3.1
environment:
ES_JAVA_OPTS: -Xms6g -Xmx6g
bootstrap.memory_lock: 'true'
cluster.name: docker-cluster
node.name: $$$${HOSTNAME}
discovery.zen.ping.unicast.hosts: elasticsearch.yourstack,elasticsearchnode.yourstack
node.master: 'true'
node.data: 'false'
ulimits:
memlock:
hard: -1
soft: -1
stdin_open: true
volumes:
- esdata:/usr/share/elasticsearch/data
tty: true
labels:
io.rancher.scheduler.affinity:host_label: elk=master
io.rancher.container.pull_image: always
io.rancher.scheduler.global: 'true'
kibanaa:
image: youregistry/kibana/kibana:6.3.1
environment:
xpack.monitoring.ui.container.elasticsearch.enabled: 'false'
stdin_open: true
tty: true
links:
- elasticsearch:elasticsearch
ports:
- 5601:5601/tcp
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: elk=master
elasticsearchnode:
image: youregistry/elasticsearch/elasticsearch:6.3.1
environment:
ES_JAVA_OPTS: -Xms6g -Xmx6g
bootstrap.memory_lock: 'true'
cluster.name: docker-cluster
node.name: $$$${HOSTNAME}
discovery.zen.ping.unicast.hosts: elasticsearch.yourstack,elasticsearchnode.yourstack
node.master: 'false'
node.data: 'true'
ulimits:
memlock:
hard: -1
soft: -1
stdin_open: true
volumes:
- edatanode:/usr/share/elasticsearch/data
tty: true
labels:
io.rancher.scheduler.affinity:host_label: elk=data
io.rancher.container.pull_image: always
io.rancher.scheduler.global: 'true'
version: '2'
services:
elasticsearch:
start_on_create: true
kibanaa:
scale: 1
start_on_create: true
elasticsearchnode:
start_on_create: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.