Skip to content

Instantly share code, notes, and snippets.

@amir-rahnama
Last active October 22, 2017 00:58
Show Gist options
  • Save amir-rahnama/b22bbb4d58f17558996ab5eb3f4e88d1 to your computer and use it in GitHub Desktop.
Save amir-rahnama/b22bbb4d58f17558996ab5eb3f4e88d1 to your computer and use it in GitHub Desktop.
Stackfile for Docker Cloud ElasticSearch Cluster (with Kibana)
es-master:
image: 'elasticsearch:latest'
command: 'elasticsearch --network.host=0.0.0.0 --node.master=true --cluster.name=escluster'
restart: always
es-develop:
image: 'elasticsearch:latest'
command: 'elasticsearch --network.host=0.0.0.0 --cluster.name=escluster --discovery.zen.ping.unicast.hosts=es-master'
deployment_strategy: high_availability
links:
- es-master
restart: always
target_num_containers: 3
kibana-es-develop:
image: 'kibana:latest'
environment:
- FORCE_SSL=true
links:
- 'es-master:elasticsearch'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment