Skip to content

Instantly share code, notes, and snippets.

@JPrevost
Created January 11, 2019 16:56
Show Gist options
  • Save JPrevost/e9616efd4f4f2f98a95abe7184436198 to your computer and use it in GitHub Desktop.
Save JPrevost/e9616efd4f4f2f98a95abe7184436198 to your computer and use it in GitHub Desktop.
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
volumes:
esdata1:
driver: local
networks:
esnet:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment