Open BarnumD opened 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
Keeping an eye on this :)
consider in addition the ability to restore the db from a backup file at boot
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
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