Basically a fork of Colin Mollenhour's MariaDB Galera Swarm.
- Run
./prepare-database-cluster.sh
- Enjoy
- Run
docker stack deploy -c docker-compose.yml database
- Wait for database_seed to be healthy (use
docker service ls
to check the health) - Scale up the amount of database nodes with
docker service scale database_node=2
- Wait for both instances to be healthy
- Stop the database seed by running
docker service scale database_seed=0
- Scale up the amount of database nodes to the desired amount by running
docker service scale database_node=<amount>