Thanks a lot for this project, it's awesome!
Web server on ~/Sites
The most straightforward default web folder on OSX is probably ~/Sites
To improve the engagement of docker inside my company, i forced people to use this first plug-and-play web server as a mean to make people be impressed by docker capacity.
Also, i feel pretty pleased by the fact that you can finally run services and commands with
docker run/exec on mac seemlessly, thanks a lot for that docker!
Also, please note, that homebrew is not even needed anymore and finally webserver's config file are project centric!
Check that 80 and 443 port are free to use! Some very simple steps:
- Install docker for mac
- Create the docker 'local-nginx-rproxy' network :
docker network create local-nginx-rproxy
- Clone the repo:
git clone firstname.lastname@example.org:9c49d596991dbb47be6b52bfa3bce862.git
- Launch docker containers in background:
docker-compose up -d
- Access nginx: http://localhost
Adding http servers
I added an example with php-fpm, just do these steps:
- docker-compose -f docker-compose-php.yml up -d
- Access php: http://php.localhost
To connect on 443 port, you must create self signed certificates in
You can use a logic of wildcards certificate, for example: creating those two files
~/.certs allows you to access localhost with https!
Also if you see this and you know how to improve even further this boilerplate code, please raise your voice.