Docker: Nginx + PHP-FPM
$ docker build -t nginx-php .
$ docker run --name webserver01 -p 8000:80 -d nginx-php
$ docker logs -f webserver01
$ docker run --name webserver01 -p 8000:80 -d -v /data/www:/usr/share/nginx/html nginx-php
Custom virtual server
$ docker run --name webserver01 -p 8000:80 -d -v /data/default.conf:/etc/nginx/conf.d/default.conf:ro nginx-php
Custom Nginx configuration, remember add the propertie daemonize = no;
$ docker run --name webserver01 -p 8000:80 -d -v /data/nginx.conf:/etc/nginx/nginx.conf:ro nginx-php