Public Repository

Last pushed: a year ago
Short Description
Basic PHP7 with Nginx Webhead
Full Description

This was built using this DockerFile:

\# Pull from the custom idtech image
FROM rgreaves/idtech:v2

\# Set the author
MAINTAINER Richard Greaves <rgreaves@idtech.com>

\# Mount volumes
VOLUME ["/etc/nginx/certs", "/etc/nginx/conf.d", "/var/www/html"]

\# Boot up Nginx, and PHP5-FPM when container is started
CMD service php7.0-fpm start && nginx

\# Set the current working directory
WORKDIR /var/www/html

\# Expose port 80
EXPOSE 80
EXPOSE 443

Example to run this
docker run -it -p 80:80 -p 443:443 -d rgreaves/idtech-webhead

Mount the current folder;
docker run -it -p 80:80 -p 443:443 -v .:/var/www/html -d rgreaves/idtech-webhead

or on windows
docker run -it -p 80:80 -p 443:443 -v /c/Users/rgreaves/desktop:/var/www/html -d rgreaves/idtech-webhead

Docker Pull Command
Owner
rgreaves

Comments (0)