Update galera

This commit is contained in:
MrLetsplay 2023-06-13 14:31:47 +02:00
parent cf00fd6df2
commit 6267389d5b
4 changed files with 16 additions and 46 deletions

View File

@ -1,9 +1,2 @@
MARIADB_GALERA_CLUSTER_NAME=my_galera
MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
MARIADB_GALERA_MARIABACKUP_PASSWORD=my_mariabackup_password
MARIADB_ROOT_PASSWORD=my_root_password
MARIADB_USER=my_user
MARIADB_PASSWORD=my_password
MARIADB_DATABASE=my_database
MARIADB_REPLICATION_USER=my_replication_user
MARIADB_REPLICATION_PASSWORD=my_replication_password
CLUSTER_ADDRESS=gcomm://172.20.5.40,172.20.5.41
NODE_IP=172.20.5.40

View File

@ -1,19 +1,9 @@
services:
galera-bootstrap:
image: bitnami/mariadb-galera:latest
ports:
- 3306:3306
- 4444:4444
- 4567:4567
- 4568:4568
galera:
image: bitnami/mariadb-galera
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_GALERA_CLUSTER_BOOTSTRAP=yes
- MARIADB_GALERA_CLUSTER_NAME=${MARIADB_GALERA_CLUSTER_NAME}
- MARIADB_GALERA_MARIABACKUP_USER=${MARIADB_GALERA_MARIABACKUP_USER}
- MARIADB_GALERA_MARIABACKUP_PASSWORD=${MARIADB_GALERA_MARIABACKUP_PASSWORD}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_REPLICATION_USER=${MARIADB_REPLICATION_USER}
- MARIADB_REPLICATION_PASSWORD=${MARIADB_REPLICATION_PASSWORD}
- 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}
network_mode: host

View File

@ -1,8 +1,2 @@
MARIADB_GALERA_CLUSTER_NAME=my_galera
MARIADB_GALERA_CLUSTER_ADDRESS=gcomm://galera-1:4567
MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
MARIADB_GALERA_MARIABACKUP_PASSWORD=my_mariabackup_password
MARIADB_ROOT_PASSWORD=my_root_password
MARIADB_REPLICATION_USER=my_replication_user
MARIADB_REPLICATION_PASSWORD=my_replication_password
CLUSTER_ADDRESS=gcomm://172.20.5.40,172.20.5.41
NODE_IP=172.20.5.41

View File

@ -1,16 +1,9 @@
services:
galera:
image: bitnami/mariadb-galera:latest
ports:
- 3306:3306
- 4444:4444
- 4567:4567
- 4568:4568
image: bitnami/mariadb-galera
environment:
- MARIADB_GALERA_CLUSTER_NAME=${MARIADB_GALERA_CLUSTER_NAME}
- MARIADB_GALERA_CLUSTER_ADDRESS=${MARIADB_GALERA_CLUSTER_ADDRESS}
- MARIADB_GALERA_MARIABACKUP_USER=${MARIADB_GALERA_MARIABACKUP_USER}
- MARIADB_GALERA_MARIABACKUP_PASSWORD=${MARIADB_GALERA_MARIABACKUP_PASSWORD}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_REPLICATION_USER=${MARIADB_REPLICATION_USER}
- MARIADB_REPLICATION_PASSWORD=${MARIADB_REPLICATION_PASSWORD}
- ALLOW_EMPTY_PASSWORD=yes
- 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}
network_mode: host