Skip to content

Instantly share code, notes, and snippets.

@nazarewk
Last active September 28, 2018 09:57
Show Gist options
  • Save nazarewk/a0efc2ef3dfcfaabc18f6b981b163592 to your computer and use it in GitHub Desktop.
Save nazarewk/a0efc2ef3dfcfaabc18f6b981b163592 to your computer and use it in GitHub Desktop.
Elasticsearch + Kibana minimal docker-compose.yaml
version: '2.4'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1
environment:
- "ES_JAVA_OPTS=-Xms${MEMORY:-256}m -Xmx${MEMORY:-256}m"
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 127.0.0.1:9200:9200
cpu_count: 1
mem_reservation: "${MEMORY:-256}m"
mem_limit: "${MAX_MEMORY:-512}m"
kibana:
image: docker.elastic.co/kibana/kibana:6.4.1
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
ports:
- 127.0.0.1:5601:5601
cpu_count: 1
mem_limit: 256m
volumes:
elasticsearch-data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment