Handy XAMPP replacer, using docker containers for php, apache, mysql, phpMyAdmin
Installation steps
@windows
Install Docker Desktop on Windows
Download the project or clone git clone https://github.com/cvipenta/xampp.git .
it on your local machine.
Unzip the archive downloaded, rename and move the folder as you wish.
Open terminal and navigate from terminal to your newly created folder eg: cd C:\ ... \code-xampp
the folder structure will be:
|-- docker
| |-- Dockerfile
| -- dump
| -- practica.sql
|-- docker-compose.yml
|-- index.php
|-- makefile
|-- readme.md
|-- src
If you have make available on your computer run the commands as described bellow. (Optional) https://www.technewstoday.com/install-and-use-make-in-windows/
To start the containers run make docker-up
. Check the containers’ status with docker ps
Access web container with make ssh-web
Otherwise, you can use the commands present in makefile as follows:
start all containers
docker-compose up -d
stop all containers
docker-compose down
access web container
docker exec -it practica_web bash
recreate containers after configuration changes
docker-compose up --build --force-recreate -d
Update the configurations upon your needs!