Build and run a Dockerized setup that includes XAMPP.
You can find it on Docker Hub: https://hub.docker.com/r/domintr/xampp
Create C:/www
folder and place your websites there.
Ports used:
- Apache: 1080/1443(for https)
- MySQL: 4306
To run:
- Copy both the 'docker-compose.yml' and 'Dockerfile' files into the same directory.
- Execute
docker compose up
.
You can change the XAMPP version by modifying the download URL in the 'Dockerfile'. This can be useful for future updates and security considerations.