tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
198 stars 109 forks source link

Add Docker Compose example and MySQL data persistence #60

Closed NecroPrism4 closed 6 months ago

NecroPrism4 commented 6 months ago

I needed to run this docker image whit docker compose particularly, also I needed data persistent with mysql.

This example is usefull if you needto run the tomsik68/xampp Docker image with Docker Compose and you require ensuring data persistence for MySQL. However, attempting to mount a volume directly to the MySQL directory may lead to errors during boot up. This PR addresses this issue by providing a clear example and instructions on how to correctly configure Docker Compose for MySQL data persistence.

Screenshot 2024-05-08 at 9 40 42 a m
tomsik68 commented 6 months ago

LGTM. Thank you for the contribution!