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
197 stars 109 forks source link

Mount existing db to container #56

Closed ydrob closed 9 months ago

ydrob commented 10 months ago

Hello,

Can I mount existing db from host to docker container? I want to do it to save all data on my host, even if I recreate a container.

Thank you!

tomsik68 commented 9 months ago

Hi ydrob, can you try looking at this question? https://github.com/tomsik68/docker-xampp/issues/39

Let me know if it helps or not.

ydrob commented 9 months ago

Thank for answer, I use another way, I modified your image and create backup of database using cron and place it to mounted folder, it suits me.