Here, there are some configs to use Elasticsearch as a Docker container and Logstash + Kibana as well.
You will see that Elasticsearch config is separated from Logstash and Kibana because I'm assuming that you want to use the ES container to other things rather than only log analyses.
Go to https://docs.docker.com/install/ and open the "Docker CE" menu, choose you OS and follow their instructions.
After install, open your terminal and type: