Skip to content

A functional docker example with: php7, nginx, postgres, elk, rabbitmq and redis.

Notifications You must be signed in to change notification settings

lerox/docker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-example

A functional docker example with: php7, nginx, postgres, elk, rabbitmq and redis.

Set up

$ 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

Logs

$ docker-compose logs elk
$ docker-compose logs php
$ docker-compose logs postgresql
$ docker-compose logs rabbitmq
$ docker-compose logs redis
$ docker-compose logs web

Endpoints:

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

About

A functional docker example with: php7, nginx, postgres, elk, rabbitmq and redis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published