Update galera
This commit is contained in:
parent
cf00fd6df2
commit
6267389d5b
@ -1,9 +1,2 @@
|
|||||||
MARIADB_GALERA_CLUSTER_NAME=my_galera
|
CLUSTER_ADDRESS=gcomm://172.20.5.40,172.20.5.41
|
||||||
MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
|
NODE_IP=172.20.5.40
|
||||||
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
|
|
@ -1,19 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
galera-bootstrap:
|
galera:
|
||||||
image: bitnami/mariadb-galera:latest
|
image: bitnami/mariadb-galera
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
- 4444:4444
|
|
||||||
- 4567:4567
|
|
||||||
- 4568:4568
|
|
||||||
environment:
|
environment:
|
||||||
|
- ALLOW_EMPTY_PASSWORD=yes
|
||||||
- MARIADB_GALERA_CLUSTER_BOOTSTRAP=yes
|
- MARIADB_GALERA_CLUSTER_BOOTSTRAP=yes
|
||||||
- MARIADB_GALERA_CLUSTER_NAME=${MARIADB_GALERA_CLUSTER_NAME}
|
- MARIADB_GALERA_CLUSTER_ADDRESS=${CLUSTER_ADDRESS}
|
||||||
- MARIADB_GALERA_MARIABACKUP_USER=${MARIADB_GALERA_MARIABACKUP_USER}
|
- 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_GALERA_MARIABACKUP_PASSWORD=${MARIADB_GALERA_MARIABACKUP_PASSWORD}
|
network_mode: host
|
||||||
- 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}
|
|
@ -1,8 +1,2 @@
|
|||||||
|
CLUSTER_ADDRESS=gcomm://172.20.5.40,172.20.5.41
|
||||||
MARIADB_GALERA_CLUSTER_NAME=my_galera
|
NODE_IP=172.20.5.41
|
||||||
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
|
|
@ -1,16 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
galera:
|
galera:
|
||||||
image: bitnami/mariadb-galera:latest
|
image: bitnami/mariadb-galera
|
||||||
ports:
|
|
||||||
- 3306:3306
|
|
||||||
- 4444:4444
|
|
||||||
- 4567:4567
|
|
||||||
- 4568:4568
|
|
||||||
environment:
|
environment:
|
||||||
- MARIADB_GALERA_CLUSTER_NAME=${MARIADB_GALERA_CLUSTER_NAME}
|
- ALLOW_EMPTY_PASSWORD=yes
|
||||||
- MARIADB_GALERA_CLUSTER_ADDRESS=${MARIADB_GALERA_CLUSTER_ADDRESS}
|
- MARIADB_GALERA_CLUSTER_BOOTSTRAP=false
|
||||||
- MARIADB_GALERA_MARIABACKUP_USER=${MARIADB_GALERA_MARIABACKUP_USER}
|
- MARIADB_GALERA_CLUSTER_ADDRESS=${CLUSTER_ADDRESS}
|
||||||
- MARIADB_GALERA_MARIABACKUP_PASSWORD=${MARIADB_GALERA_MARIABACKUP_PASSWORD}
|
- 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_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
network_mode: host
|
||||||
- MARIADB_REPLICATION_USER=${MARIADB_REPLICATION_USER}
|
|
||||||
- MARIADB_REPLICATION_PASSWORD=${MARIADB_REPLICATION_PASSWORD}
|
|
Loading…
Reference in New Issue
Block a user