Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jinnabaalu/05ef90bc3234ad11e29f6abf23222cad to your computer and use it in GitHub Desktop.
Save jinnabaalu/05ef90bc3234ad11e29f6abf23222cad to your computer and use it in GitHub Desktop.
elasticsearch 6.6.* simple compose with volume
version: '3.3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
container_name: elasticsearch
volumes:
- /var/db/data/elasticsearch:/usr/share/elasticsearch
ports:
- 9200:9200
- 9300:9300
environment:
ES_JAVA_OPTS: '-Xms256m -Xmx256m'
network.bind_host: 0.0.0.0
network.host: 0.0.0.0
discovery.type: single-node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment