From d06d10fbb17cff957bbcc53f67126a2ef4155f15 Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Tue, 31 Oct 2017 13:38:22 +0100 Subject: [PATCH] It seems to be nessecary to run in host mode.. for galera to work. --- roles/mariadb/templates/mysql.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mariadb/templates/mysql.service b/roles/mariadb/templates/mysql.service index e66c4dd..231a0bd 100644 --- a/roles/mariadb/templates/mysql.service +++ b/roles/mariadb/templates/mysql.service @@ -10,7 +10,7 @@ ExecStartPre=-/usr/bin/docker kill %n || /bin/true ExecStartPre=-/usr/bin/docker rm %n ExecStartPre=/usr/bin/docker pull mariadb:10.2 ExecStart=/usr/bin/docker run --name %n \ - -p 3306:3306 -p 4567:4567 -p 4568:4568 -p 4444:4444 \ + --network host \ -v /srv/mariadb/lib/mysql:/var/lib/mysql \ -v /srv/mariadb/etc/mysql/conf.d:/etc/mysql/conf.d \ -e MYSQL_ROOT_PASSWORD={{ secrets['MYSQL_ROOT_PASSWORD'] }} mariadb:10.2 {{ mariadb_args }}