Some typical docker compose templates.
Take ubuntu for example
$ curl -sSL https://get.docker.com/ | sh
$ sudo pip install docker-compose
See https://docs.docker.com/compose/.
Using consul to make a service-discoverable architecture.
Start 3 mongo instance to make a replica set.
Start mongo (as cluster) and elasticsearch, use a mongo-connector to sync the data from mongo to elasticsearch.
Start 1 mongo instance and a mongo-express web tool to watch it.
The mongo instance will store data into local /opt/data/mongo_home.
The web UI will listen on local 8081 port.
Use nginx as a proxy with authentication for backend application.
docker registry mirror, with redis as the backend cache.
Elk cluster, with netflow support
docker-compose scale es=3