Dockerfile to provide a ready to use LAMP environment. It must not be used in production.
1.2K
Dockerfile to provide a ready to use LAMP environment.
This environment is intended to be used in web development courses, It activates all PHP extensions and show all PHP errors. It must not be used in production.
Dockerfile linksphp7, latestphp5Automated builds of the image are available on Dockerhub and is the recommanded method of installation.
$ docker pull ipeos/lamp-dev:latest
Some vars can upgrade the php.ini
PHP_ERROR_REPORTING: E_ALL & ~E_DEPRECATED & ~E_STRICTPHP_DISPLAY_ERRORS: OnPHP_UPLOAD_MAX_FILE_SIZE: 20MPHP_POST_MAX_SIZE: 28MPHP_MEMORY_LIMIT: 256MPHP_EXPOSE_PHP: OffPHP_TIMEZONE: UTCCan enable or disable override by htaccess
ENABLE_HTACCESS: Ondocker run -p 8888:80 -v /home/user/public_html:/var/www/html --name lamp ipeos/lamp-dev:latest
Now that the LAMP 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 lamp container.
The quickest way to get started is using docker-compose.
You can create a custom docker-compose.yml file for your project, by setting environment variables and running the script run.sh:
docker-compose.envrun.shNow that the LAMP server’s running, visit with your Web browser :
In order to (re)start the environment, use the run.sh script.
$ ./run.sh
The environment is started as daemon. So it will be restarted on the workstation reboot.
In order to stop the environment, use the stop.sh script.
$ ./stop.sh
All containers will be removed and recreated on then next run.
This 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
206.3 MB
Last updated
almost 5 years ago
docker pull ipeos/lamp-dev