Skip to content

Instantly share code, notes, and snippets.

@bvader
Created August 15, 2019 17:32
Show Gist options
  • Save bvader/627dd40fffc171c5d010bcbdaf3f6790 to your computer and use it in GitHub Desktop.
Save bvader/627dd40fffc171c5d010bcbdaf3f6790 to your computer and use it in GitHub Desktop.
---
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${TAG}
environment: ['ES_JAVA_OPTS=-Xms2g -Xmx2g','bootstrap.memory_lock=true','discovery.type=single-node', 'http.host=0.0.0.0', 'transport.host=127.0.0.1']
ports: ['127.0.0.1:9200:9200']
networks: ['stack']
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
kibana:
image: docker.elastic.co/kibana/kibana:${TAG}
ports: ['127.0.0.1:5601:5601']
networks: ['stack']
depends_on: ['elasticsearch']
networks: {stack: {}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment