Sign inSign up

davidsal/xampp-8.0.0

By davidsal

•Updated almost 6 years ago

Image
0

280

davidsal/xampp-8.0.0 repository overview

⁠XAMPP 8.0.0 Container

This is a rapid development container, just run the code below and you are ready to go.
I do this on my spare time, so if you appreciate my work and want to support me, you can do it via paypal.me

PayPal Donation

⁠How To Use This Image?

Web Port: This is the port to access your webpages, ex. 80. You can access your project by going into localhost:<Web Port>/www

MariaDB Port: This is the port to access your database, ex. 3006. You can access your database from your favorite database tool with localhost:<MariaDB Port>

MariaDB User: root

MariaDB Password: No password, you can leave it blank, you can later change it from PHPMyAdmin

PHPMyAdmin: You can access PHPMyAdmin by going into localhost:<Web Port>/phpmyadmin

Directory: This is the volume directory for storing your webpages (remember to create it before executing the command, otherwise, the folder will be created as Root User).

Name: This is the name of your container, by giving different ports and names, you can have multiple containers for multiple projects.

Mount-Vol: This is the name of your docker volume, this will store your MariaDB configuration files in case you want to backup them. Ex. xampp-vol.

Start at boot: First, enable the docker.service with sudo systemctl enable docker.service. Then execute the code from the Tweaking section.

Run the next command, replace according your needs. After that, you can use docker start/stop.

docker run -d --tty -p <Web Port>:80 -p <MariaDB Port>:3306 -v <Directory>:/opt/lampp/htdocs/www --mount "source=<Mount-Vol>,destination=/opt/lampp/var/mysql" --name xampp davidsal/xampp-8.0.0

⁠Tweaking

Access the console: you can access it by issuing the next command:

docker exec -it <Name> /bin/bash

Entry Script: This is the script being called when starting the container, nano is installed so you can modifiy it easily.

nano /root/entry.sh Owner is user root!

Auto start on boot: If you need the container to start at machine boot, use the next code. For more restart flags, check the documentation at the next link
Start containers automatically ⁠

docker run -d --tty --restart=always -p <Web Port>:80 -p <MariaDB Port>:3306 -v <Directory>:/opt/lampp/htdocs/www --mount "source=<Mount-Vol>,destination=/opt/lampp/var/mysql" --name xampp davidsal/xampp-8.0.0

Tag summary

Content type

Image

Digest

Size

461.5 MB

Last updated

almost 6 years ago

docker pull davidsal/xampp-8.0.0