Skip to content

Instantly share code, notes, and snippets.

@hideojoho
Last active October 27, 2019 08:26
Show Gist options
  • Save hideojoho/05c26f5a22e860514b87036ea4e142b0 to your computer and use it in GitHub Desktop.
Save hideojoho/05c26f5a22e860514b87036ea4e142b0 to your computer and use it in GitHub Desktop.
How to deploy Elasticsearch and Kibana on Docker
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.2
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
volumes:
- ./es-data:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:6.6.2
ports:
- 5601:5601

How to deploy Elasticsearch and Kibana on Docker

  • Elasticsearch + Kibana: 6.6.2
  • Java Memory: 1GB
  • Create folders
ESK
├── docker-compose.yml
└── es-data
  • Run the docker
$ cd ESK;
$ docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment