diff --git a/galera/bootstrap/.env b/galera/bootstrap/.env index e2236b4..3f93c87 100644 --- a/galera/bootstrap/.env +++ b/galera/bootstrap/.env @@ -1,2 +1,4 @@ CLUSTER_ADDRESS=gcomm://172.20.5.40,172.20.5.41 -NODE_IP=172.20.5.40 \ No newline at end of file +NODE_IP=172.20.5.40 +USER_PASSWORD=amogus +ROOT_PASSWORD=amogus2 \ No newline at end of file diff --git a/galera/bootstrap/docker-compose.yml b/galera/bootstrap/docker-compose.yml index 3ab6440..a94d22e 100644 --- a/galera/bootstrap/docker-compose.yml +++ b/galera/bootstrap/docker-compose.yml @@ -6,4 +6,7 @@ services: - MARIADB_GALERA_CLUSTER_BOOTSTRAP=yes - MARIADB_GALERA_CLUSTER_ADDRESS=${CLUSTER_ADDRESS} - MARIADB_EXTRA_FLAGS=--wsrep_provider_options=ist.recv_addr=${NODE_IP}:4568;ist.recv_bind=0.0.0.0:4568 --wsrep_node_incoming_address=${NODE_IP} --wsrep_sst_receive_address=${NODE_IP} + - MARIADB_USER=owncloud + - MARIADB_PASSWORD=${USER_PASSWORD} + - MARIADB_ROOT_PASSWORD=${ROOT_PASSWORD} network_mode: host \ No newline at end of file diff --git a/galera/default/.env b/galera/default/.env index 62aec3b..7a4ebf0 100644 --- a/galera/default/.env +++ b/galera/default/.env @@ -1,2 +1,4 @@ CLUSTER_ADDRESS=gcomm://172.20.5.40,172.20.5.41 -NODE_IP=172.20.5.41 \ No newline at end of file +NODE_IP=172.20.5.41 +USER_PASSWORD=amogus +ROOT_PASSWORD=amogus2 \ No newline at end of file diff --git a/galera/default/docker-compose.yml b/galera/default/docker-compose.yml index f87c36b..1dc0ff9 100644 --- a/galera/default/docker-compose.yml +++ b/galera/default/docker-compose.yml @@ -6,4 +6,7 @@ services: - MARIADB_GALERA_CLUSTER_BOOTSTRAP=false - MARIADB_GALERA_CLUSTER_ADDRESS=${CLUSTER_ADDRESS} - MARIADB_EXTRA_FLAGS=--wsrep_provider_options=ist.recv_addr=${NODE_IP}:4568;ist.recv_bind=0.0.0.0:4568 --wsrep_node_incoming_address=${NODE_IP} --wsrep_sst_receive_address=${NODE_IP} + - MARIADB_USER=owncloud + - MARIADB_PASSWORD=${USER_PASSWORD} + - MARIADB_ROOT_PASSWORD=${ROOT_PASSWORD} network_mode: host \ No newline at end of file