This example Docker Compose configuration demonstrates many components of the Elastic Stack, all running on a single machine under Docker.
- Docker and Compose. Windows and Mac users get Compose installed automatically with Docker. Linux users can:
pip install docker-compose
- At least 4GiB of RAM for the containers. Windows and Mac users must configure their Docker virtual machine to have more than the default 2 GiB of RAM:
To change elasticsearch and other components of stack version, open .env file and change tag and elasticsearch variable value which is 6.2.2 by default.
- docker-compose.yml :
Using this
docker-compose upcommand will create stack with only elasticsearch and kibana. - docker-compose.yml-complete-stack :
Using the above file(need to rename as docker-compose.yml) & then run
docker-compose upto create a demonstration Elastic Stack with Elasticsearch, Kibana, Logstash, Auditbeat, Metricbeat, Filebeat, Packetbeat, and Heartbeat.
Open a browser at http://localhost:5601 to see the results.
Log in with elastic / secret.