Skip to content

Instantly share code, notes, and snippets.

@theY4Kman
Forked from divideby0/docker-compose.yml
Last active September 23, 2018 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theY4Kman/b3095f6a588df02bc239957acf37d737 to your computer and use it in GitHub Desktop.
Save theY4Kman/b3095f6a588df02bc239957acf37d737 to your computer and use it in GitHub Desktop.
Quick and Dirty ES 6 on Docker Compose
# Instructions
# 1. Download this script into its own directory.
# 2. Install Docker for Mac (https://docs.docker.com/docker-for-mac/install/)
# 3. Run `docker-compose up`
# 4. Kibana will be available at http://localhost:5601
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:5.4.3
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