wsrepnewcluster moved to var
This commit is contained in:
parent
95175d6e37
commit
11da7eced9
1 changed files with 2 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue