Created
July 14, 2018 10:24
-
-
Save behroozam/ac05306221681ff1c7edb2647b02a7d9 to your computer and use it in GitHub Desktop.
rancher elasticsearch 6.3.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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