Ready to use PHP7 environment. Build on stable GNU/Linux Debian with Apache 2.4 and dotdeb rep.
1.1K
Dockerfile to provide a ready to use PHP7 environment using a local shared volume for the web server root directory.
This image is build on stable GNU/Linux Debian with Apache 2.4 and dotdeb repositories activated.
This environment is intended to be used in web development courses, It activates all PHP7 extensions and show all PHP errors. It must not be used in production. .
Automated builds of the image are available on Dockerhub and is the recommanded method of installation.
$ docker pull ipeos-and-co/php7-dev
docker run -p 8888:80 -v /home/user/public_html:/var/www/html --name php7 ipeos/php7-dev
Now that the Apache/PHP7 server’s running, visit http://127.0.0.1:8888/ with your Web browser.
The site's PHP and static files are directly accessible in the local volume you mounted as /var/www/html in the php7 container.
The quickest way to get started is using docker-compose.
Start a PHP7 container linked with MariaDB and phpMyadmin using:
docker-compose up
In order to manage multiple projects 2 scrips are provided to customize your docker-compose
.env file to store the main vars ;To start a PHP7 container linked with MariaDB and phpMyadmin
docker-compose.tplrun.shThis image was created by IPEOS for a purpose of web development training courses.
If you find this image useful here's how you can help:
Content type
Image
Digest
Size
174.1 MB
Last updated
about 10 years ago
docker pull ipeos/php7-dev