Easily configurable PHP5 development image with Apache2 webserver
555
Image is based on phusion/baseimage:0.9.17
NOTE: Image does not have MySQL server installed as we are using docker and it can be easily linked from another container :)
This image is configured purely using following environment variables:
PROJECT_ROOT => Root of your project containing all files, defaults /var/www/htmlWEB_ROOT => Path to folder containing index.html/index.php file within PROJECT_ROOT folder, the path must begin with / and defaults to / => PROJECT_ROOTSSL_CERT => Path to SSL certificate, defaults to /etc/ssl/certs/ssl-cert-snakeoil.pem Currently not workingSSL_KEY => Path to SSL certificate, defaults to /etc/ssl/private/ssl-cert-snakeoil.key Currently not workingphpinfo()docker run -d -p 8080:80 -p 8443:443 --name apache2 michaelkuk/apache2
docker run -d -p 8080:80 -p 8443:443 --name <project_name> -v $(pwd):$(pwd) -e PROJECT_ROOT=$(pwd) michaelkuk/apache2
WEB_ROOT located in public directorydocker run -d -p 8080:80 -p 8443:443 -v $(pwd):$(pwd) -e PROJECT_ROOT=$(pwd) -e WEB_ROOT=/public michaelkuk/apache2
Content type
Image
Digest
sha256:3e29f20cd…
Size
180.5 MB
Last updated
almost 11 years ago
docker pull michaelkuk/apache2