This is a functional example where it's possible to run Nginx and PHP FPM containers sharing sockets.
$ git clone git@github.com:usabilla/php-docker-template.git
$ cd docs/examples/hello-world-fpmWe love automation, all the functionality of this demos is available via a Makefile
Do it all: Build, check and run
$ makeThe target up start the webserver on port 8080, you can modify it to your needs
$ make up PORT=8001The target down will clean up the containers for you!
It's also useful when you the up target fail, it might be because the port is busy
$ make downIf you're modifying the Dockerfile you have to rebuild it via
$ make docker-buildWe recommend you to read the Makefile and the Dockerfile to understand how things are working!
Missing anything? Feel free to open a PR or submit an issue.