Created
February 27, 2019 21:35
-
-
Save austinorth/78de15603c969e7c7ec4bc37b6386eaf to your computer and use it in GitHub Desktop.
A docker-compose file for spinning up a single node of Elasticsearch version locked at 6.2.4.
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.7" | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4 | |
container_name: elasticsearch | |
network_mode: host | |
restart: always | |
environment: | |
- cluster.name=dev-elasticsearch | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esdata:/home/username/elasticsearch/data | |
ports: | |
- 9200:9200 | |
volumes: | |
esdata: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment