Skip to content

Instantly share code, notes, and snippets.

@austinorth
Created February 27, 2019 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austinorth/78de15603c969e7c7ec4bc37b6386eaf to your computer and use it in GitHub Desktop.
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.
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