elasticsearchHow can I use Docker to deploy Elasticsearch and Kibana?
To deploy Elasticsearch and Kibana using Docker, you can use the official images from the Docker Hub.
- Pull the images from the Docker Hub:
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.2
docker pull docker.elastic.co/kibana/kibana:7.9.2
- Create a network for the containers:
docker network create elastic
- Start the Elasticsearch container:
docker run -d --name elasticsearch --net elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.9.2
- Start the Kibana container:
docker run -d --name kibana --net elastic -p 5601:5601 docker.elastic.co/kibana/kibana:7.9.2
You can now access Elasticsearch and Kibana on the host machine.
Helpful links
More of Elasticsearch
- How can I use elasticsearch zone awareness to improve my software development?
- How do I use Elasticsearch with ZGC?
- How can I use Elasticsearch with Zammad?
- How do I set up an Elasticsearch Yum repository?
- How do I use ElasticSearch to zip files?
- How can I set up and use Elasticsearch on the Yandex Cloud platform?
- How do I configure elasticsearch xpack.security.transport.ssl?
- How can I use Elasticsearch to diagnose "yellow" issues?
- How can I use Yandex Mirror to access Elasticsearch data?
- How can I use YouTube to learn about Elasticsearch?
See more codes...