Nginx Latest + PHP-FPM Latest setup for Docker, build on Alpine Linux. The image is very small +/- 35MB.
RUN NGINX as any non privileged USER for better security / Update wordpress & plugins without changing file owner & permissions. ** ie: -e USER=ec2-user * for use with AWS ec2-user
Docker Pull Command: docker pull scriptgurus/nginx-php Or Run from hub.docker.com -> https://hub.docker.com/repository/docker/scriptgurus/nginx-php docker run -p 80:8080 -p 443:8443 -v /path-to-your/html:/var/www/html -v /path-to-your/ssl:/ssl -e USER=user scriptgurus/nginx-php:latest