A functional docker example with: php7, nginx, postgres, elk, rabbitmq and redis.
$ cd ~/workingspace/
$ git clone [email protected]:lerox/docker-example.git
$ cd docker-example/
# /etc/hosts
# ...
192.168.99.100 docker-example.local # usually 127.0.0.1
# ...
# Create your own docker-compose file, or just:
$ cp docker-compose.yml.dist docker-compose.yml
$ docker-machine env # 4 mac users
$ docker volume create --name=actual-name-of-volume
$ docker-compose build
$ docker-compose up
# 4 mac users
$ docher-machine ssh your-machine-name
# ...
boot2docker@vbox-test:~$ sudo sysctl -w vm.max_map_count=262144
# And then:
$ ./up.sh
$ docker-compose logs elk
$ docker-compose logs php
$ docker-compose logs postgresql
$ docker-compose logs rabbitmq
$ docker-compose logs redis
$ docker-compose logs web
http://docker-example.local:8080/ *Will run a set up check
http://docker-example.local:15672/#/queues *guest guest to login
http://docker-example.local:5601/app/kibana#/discover?_g=() *Time-field name: @timestamp