Skip to content

Instantly share code, notes, and snippets.

@hasan4temp
Created January 2, 2023 08:37
Show Gist options
  • Save hasan4temp/7f1b4290cbfde27993e97ba0490e8c30 to your computer and use it in GitHub Desktop.
Save hasan4temp/7f1b4290cbfde27993e97ba0490e8c30 to your computer and use it in GitHub Desktop.
docker-compose.yaml
services:
mariadb-galera:
container_name: mariadb-galera
environment:
- MARIADB_GALERA_CLUSTER_NAME="galera_node"
- MARIADB_GALERA_CLUSTER_ADDRESS=gcomm://103.174.50.210
- MARIADB_ROOT_PASSWORD=rootpassword
- MARIADB_GALERA_MARIABACKUP_PASSWORD=MBrootpassword
- MARIADB_GALERA_NODE_ADDRESS=103.174.50.210
- BITNAMI_DEBUG=true
- MARIADB_EXTRA_FLAGS=--wsrep_node_name="Node_50_210" --wsrep_provider_options=ist.recv_addr=103.174.50.210:4568;ist.recv_bind=0.0.0.0:4568
--wsrep_node_incoming_address=103.174.50.210 --wsrep_sst_receive_address=103.174.50.210
hostname: cluster.aamarpay.com
image: bitnami/mariadb-galera:10.9
network_mode: host
restart: always
volumes:
- /home/mariadb_storage:/bitnami/mariadb
version: '3.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment