Skip to content

Instantly share code, notes, and snippets.

@divideby0
Created December 4, 2017 18:19
Show Gist options
  • Save divideby0/5fb1dcb31a19a38b19ae3aa9b0b7d5ea to your computer and use it in GitHub Desktop.
Save divideby0/5fb1dcb31a19a38b19ae3aa9b0b7d5ea to your computer and use it in GitHub Desktop.
Quick and Dirty ES 6 on Docker Compose
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0
environment:
- 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
kibana:
image: docker.elastic.co/kibana/kibana:6.0.0
environment:
# SERVER_NAME: kibana.example.org
ELASTICSEARCH_URL: http://elasticsearch:9200
ports:
- 5601:5601
depends_on:
- elasticsearch
volumes:
esdata1:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment