Docker-LAMPW is a LAMP stack (Apache, MariaDB and PHP).
# /var/www i mapped to /home/user/github
# Launch the image with autostart when docker start
docker run --restart unless-stopped -d -p 80:80 -p 443:443 -p 3000:3000 -p 10000:10000 \
-v /var/www:/var/www -v mysql-data:/var/lib/mysql --name lamp registry.gitlab.com/karye/docker-lampw
# You can also set timezone area and city
docker run --restart unless-stopped -d -p 80:80 -p 443:443 -p 3000:3000 -p 10000:10000 \
-v /var/www:/var/www -v mysql-data:/var/lib/mysql -e AREA=Europe -e CITY=Stockholm --name lamp registry.gitlab.com/karye/docker-lampw
# /var/www i mapped to C:\github
# Launch the image with autostart when docker start
docker run -d --restart unless-stopped -p 80:80 -p 443:443 -p 3000:3000 -p 10000:10000 `
-v "C:\github:/var/www" -v "mysql-data:/var/lib/mysql" --name lamp registry.gitlab.com/karye/docker-lampw
Launch http://localhost/lampw to test webbserver is up and list setup info.
# View logg
docker logs lamp
# Attach to console
docker exec -it lamp bash
# View running containers
docker ps -a
# Updating to latest image
# Pull latest image from https://registry.gitlab.com/karye/docker-lampw
docker stop karye/lampw
docker rm karye/lampw
docker pull karye/lampw
Password for user admin is generated randomly see file in root (/) A file is created in / named as admin:pass
The url http://localhost is mapped to '/var/www/' in the docker container.
/ (project root)
/var/www/ (your folders and files live here)
Docker-LAMPW comes pre-installed with Webmin available at https://localhost:10000.\
Login in with user root and password pass.\
Local timezone is 'Europe/Stockholm'. You may change timezone in Webmin.
Database data is located on a separate volume for datapersistens. The databases will therefore not be lost when reinstalling or upgrading LAMPW.
Docker-LAMPW comes pre-installed with phpMyAdmin available at http://localhost/phpmyadmin.
Login in with user admin and password pass.
Docker-LAMPW is licensed under the Apache 2.0 License.
Content type
Image
Digest
sha256:25432dacb…
Size
449.6 MB
Last updated
almost 4 years ago
docker pull karye/lampw