Open Conmi-WhiteJoker opened 2 years ago
My changes are based on this file:"https://github.com/severalnines/galera-docker-mariadb/blob/master/example-compose/performance/global.yml" `version: '3'
services:
mariadb_galera_1: container_name: mariadb_galera_1 deploy: mode: global restart_policy: condition: on-failure delay: 10s max_attempts: 10 placement: constraints:
mariadb_galera_2: container_name: mariadb_galera_2 deploy: mode: global restart_policy: condition: on-failure delay: 10s max_attempts: 10 placement: constraints:
mariadb_galera_3: container_name: mariadb_galera_3 deploy: mode: global restart_policy: condition: on-failure delay: 10s max_attempts: 10 placement: constraints:
networks: db_galera_net: driver: overlay
volumes: datadir:`
As a student, I do not have multiple servers, and I always fail to build multiple database clusters based on a single server. I hope that a single "docker-comemess. yml" file can teach me, so that I can learn the configuration principle from a file, thank you.