Skip to content

Instantly share code, notes, and snippets.

@sskset
Created February 17, 2019 12:24
Show Gist options
  • Save sskset/db0d31369b121c1f53e0ae33b7badb61 to your computer and use it in GitHub Desktop.
Save sskset/db0d31369b121c1f53e0ae33b7badb61 to your computer and use it in GitHub Desktop.
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
@sskset
Copy link
Author

sskset commented Feb 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment