diff --git a/lxc1/p0-infrastructure/mgdb.yml b/lxc1/p0-infrastructure/mgdb.yml index f492883..179bafe 100644 --- a/lxc1/p0-infrastructure/mgdb.yml +++ b/lxc1/p0-infrastructure/mgdb.yml @@ -13,16 +13,9 @@ services: - /docker/maria/data:/var/lib/mysql - /docker/maria/conf:/etc/mysql/conf.d - /docker/maria/init:/docker-entrypoint-initdb.d - command: > - bash -c ' - if [ "${FIRST_DB_TOGGLE}" = "true" ] && [ ! -d /var/lib/mysql/mysql ]; then - echo "Bootstrapping first node"; - mysqld --wsrep-new-cluster - else - echo "Starting normal node"; - mysqld - fi + command: - mariadbd + - ${FIRST_DB_TOGGLE} - --wsrep-on=ON - --wsrep-provider=/usr/lib/galera/libgalera_smm.so - --wsrep-cluster-name=mgdev1