Created
February 17, 2019 12:24
-
-
Save sskset/db0d31369b121c1f53e0ae33b7badb61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.3.0 | |
docker pull docker.elastic.co/kibana/kibana:6.3.0 | |
docker network create esnetwork --driver=bridge | |
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name elasticsearch -d --network esnetwork docker.elastic.co/elasticsearch/elasticsearch:6.3.0 | |
docker run -p 5601:5601 --name kibana -d --network esnetwork docker.elastic.co/kibana/kibana:6.3.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.0
ports:
- "9200:9200"
- "9300:9300"
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- esnetwork
kibana:
image: docker.elastic.co/kibana/kibana:6.3.0
ports:
- "5601:5601"
networks:
- esnetwork
depends_on:
- elasticsearch
volumes:
esdata:
driver: local
networks:
esnetwork:
driver: bridge