wsrepnewcluster moved to var

This commit is contained in:
admin 2026-02-04 22:07:27 -07:00
parent 95175d6e37
commit 11da7eced9

View file

@ -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