Skip to content

Instantly share code, notes, and snippets.

@ragul28
Created January 11, 2020 10:13
Show Gist options
  • Save ragul28/142fc612d4dacbf6a1d5e442a3da6638 to your computer and use it in GitHub Desktop.
Save ragul28/142fc612d4dacbf6a1d5e442a3da6638 to your computer and use it in GitHub Desktop.
Docker Elasticsearch with single-node - for dev
version: '3'
services:
elasticsearch:
#image: elasticsearch:5-alpine
image: elasticsearch:latest
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./esdata:/usr/share/elasticsearch/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment