toughIQ / docker-mariadb-cluster

Dockerized MariaDB Galera Cluster
GNU General Public License v2.0
97 stars 69 forks source link

Data Persistence #3

Open BarnumD opened 8 years ago

BarnumD commented 8 years ago

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

valentin2105 commented 8 years ago

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

pascalandy commented 8 years ago

Keeping an eye on this :)

dottgonzo commented 7 years ago

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

dottgonzo commented 7 years ago

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