Created
January 11, 2020 10:13
-
-
Save ragul28/142fc612d4dacbf6a1d5e442a3da6638 to your computer and use it in GitHub Desktop.
Docker Elasticsearch with single-node - for dev
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: '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