This docker contain a LAMP stack installed from scratch
docker run -d -v /path/to/project:/var/www/localhost/htdocs/ -v /path/to/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -p 80:80 -p 3306:3306 --name lamp glats/alpine-lamp
git clone https://github.com/glats/alpine-lamp && cd alpine-lamp/
docker build -t $USER/alpine-lamp .
docker run -d -v /path/to/project:/var/www/localhost/htdocs/ -e MYSQL_ROOT_PASSWORD=password -p 80:80 -p 3306:3306 --name lamp $USER/alpine-lamp
To use this you need to install mysql/mariadb cli client
mysql -uroot -ppassword -h 127.0.0.1
If you want to use phpMyAdmin use the branch called: phpmyadmin-feature
If you get a "forbidden error 403" Fix it with:
sudo chmod -Rf 755 /path/to/project
If missing libs please let me know or create a pull request
https://hub.docker.com/r/glats/alpine-lamp
https://github.com/glats/alpine-lamp