🐳 Docker container running the latest version of the LAMP stack.
2.0K

This Docker container implements a last generation of LAMP stack with a set of popular PHP modules. Includes support for Composer, Yarn and npm package managers and a Postfix service to allow sending emails through PHP mail() function.
I have made a docker-compose.yml file to show how to use and map additional services like MariaDB, Node.JS and MongoDB. This image still have Node.Js inside, but just for use of npm and library dependecy management.
Includes the following components:
You can download the image using the following command:
docker pull unixelias/lamp
This image uses environment variables to allow the configuration of some parameteres at run time:
All) or disable (None) the usage of an .htaccess file.mysql or nano.The image exposes port 80, and exports the volumes:
/var/log/httpd, containing Apache log files./var/www/html, used as Apache's DocumentRoot directory.The user and group owner id for the DocumentRoot directory /var/www/html are both 33 (uid=33(www-data) gid=33(www-data) groups=33(www-data)).
docker run -i -t --rm unixelias/lamp bash
docker run --rm -p 8080:80 -e LOG_STDOUT=true -e LOG_STDERR=true -e LOG_LEVEL=debug -v /my/data/directory:/var/www/html unixelias/lamp
docker run -d --link my-mysql-container:mysql -p 8080:80 -v /my/data/directory:/var/www/html -v /my/logs/directory:/var/log/httpd --name my-lamp-container unixelias/lamp
docker exec -i -t my-lamp-container bash
mysql -u root
Content type
Image
Digest
Size
207.7 MB
Last updated
over 5 years ago
docker pull unixelias/lamp