Installing the ELK stack
You can use various methods to install the ELK stack, such as installing individual components as per the operating system, downloading the Docker images and running them individually, or executing the Docker images using Docker Compose, Docker Swarm, or Kubernetes. You are going to use Docker Compose in this chapter.
Let’s understand the grammar of a Docker Compose file before we create the ELK stack Docker Compose file. A Docker Compose file is defined using YAML. The file contains four important top-level keys:
version
: This denotes the version of the Docker Compose file format. You can use the appropriate version based on the installed Docker Engine. You can check https://docs.docker.com/compose/compose-file/ to ascertain the mapping between the Docker Compose file version and the Docker Engine version.services
: This contains one or more service definitions. The service definition represents the service executed by the container and...