Sign inSign up

joerx/docker-nginx

By joerx

•Updated over 10 years ago

Trying to make Docker/Nginx/FPM play nicely.

Image
0

244

joerx/docker-nginx repository overview

⁠Docker Nginx

Yet another Docker/Nginx/FPM image. FPM and Nginx are in the same container for simplicity. Trying to make sure all output is directed to stdout (to be 12-factor⁠ compliant)

⁠Issues

Nothing coming out of PHP-land has ever been facepalm free - e.g. FPM's configuration-resistant habit of prefixing a ton of crap to each workers output:

[15-Mar-2016 10:32:44] WARNING: [pool www] child 11 said into stderr: "not found: /bla"

The part in quotes is the actual output generated by the app :unamused:

⁠Build

docker build -t bla/bla .

Or find me on Docker Hub: https://hub.docker.com/r/joerx/docker-nginx/⁠

⁠Run

docker run -it --rm -P joerx/nginx

⁠Sample: Lumen Project

composer create-project --prefer-dist laravel/lumen rainbow-emitter
docker run -it --rm -v $(pwd)/rainbow-emitter:/src -P joerx/nginx

Tag summary

Content type

Image

Digest

Size

6.4 MB

Last updated

over 10 years ago

docker pull joerx/docker-nginx