Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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