Skip to content

Instantly share code, notes, and snippets.

@hugsy
Last active December 2, 2022 00:12
Show Gist options
  • Save hugsy/e9aa33476bba20e739ac91d9ac6c8d15 to your computer and use it in GitHub Desktop.
Save hugsy/e9aa33476bba20e739ac91d9ac6c8d15 to your computer and use it in GitHub Desktop.
Basic docker-compose for Elastic+Kibana
version: "3.0"
services:
es00:
image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2"
ports:
- "9200:9200"
- "9300:9300"
volumes:
- "es-data-es00:/usr/share/elasticsearch/data"
es01:
image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2"
ports:
- "9201:9200"
- "9301:9300"
volumes:
- "es-data-es01:/usr/share/elasticsearch/data"
es02:
image: "docker.elastic.co/elasticsearch/e1asticsearch-oss:7.10.2"
ports :
- "9202:9200"
- "9302:9300"
volumes:
- "es-data-es02:/usr/share/elasticsearch/data"
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.10.2
ports :
- "5601:5601"
environment:
- 'ELASTICSEARCH_HOSTS=["http://es00:9200","http://es01:9201","http://es02:9202"]'
volumes:
- es-data-es00:
- es-data-es01:
- es-data-es02:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment