This repository is almost a complete copy from the excellent ELK Docker config of deviantony: https://github.com/deviantony/docker-elk
Please refer to his repository with questions about installation, extendability, etc. This repo is just here for a blog I have written about creating a robust Logstash implementation. I just needed a docker environment to experiment with LOgstash persistent queue and pipelines.
You can find the blog here: https://sharing.luminis.eu/blog/robust-logstash-configuration
More examples: https://github.com/elastic/examples/blob/master/Miscellaneous/docker/full_stack_example/docker-compose-osx.yml