docker-mariadb-cluster icon indicating copy to clipboard operation
docker-mariadb-cluster copied to clipboard

Data Persistence

Open BarnumD opened this issue 9 years ago • 4 comments

I made a version that, sensing a volume at /data, manages the mysql datadir in that location. Except, each container gets it's own subfolder. That way you can have multiple containers on each host. Or all the containers can share a network (nfs) location safely. There is also a cleanup function as containers come and go. I'll put in a pull request. Fixes Issue #2

BarnumD avatar Oct 16 '16 06:10 BarnumD

I just tested this configuration and it work fine. Thanks @BarnumD and @toughIQ

You can also pull this image in valentinnc/mariadb-galera:10.1

an example with Wordpress here : https://gist.github.com/valentin2105/9c6abe0acc9a05ca0fa3abbf830d80a6

valentin2105 avatar Nov 08 '16 10:11 valentin2105

Keeping an eye on this :)

pascalandy avatar Nov 09 '16 04:11 pascalandy

consider in addition the ability to restore the db from a backup file at boot

dottgonzo avatar Aug 22 '17 14:08 dottgonzo

after some days in a swarm environment, i can say that the choice to not use persistent volumes is right. Trying to syncronize persistent volumes with gluster cause slow performances, and have many replicas is just enought

dottgonzo avatar Sep 04 '17 10:09 dottgonzo