Commit 346429ac authored by Carlomagno González's avatar Carlomagno González
Browse files

Se implementa clúster funcionando de imagen oficial

Se agregan archivos con implementación del clúster funcionando de imagen oficial de bitnami.
parent d325740a
https://github.com/bitnami/bitnami-docker-mariadb-galera
\ No newline at end of file
version: '2'
services:
mariadb-galera-bootstrap:
image: 'bitnami/mariadb-galera:10.3'
ports:
- '13306:3306'
- '14444:4444'
- '14567:4567'
- '14568:4568'
#volumes:
# INICIO PERSISTENCIA
# SE DEBE ESCOGER UNA DE LAS 2 SIGUIENTES OPCIONES
# VOLUMEN LÓGICO CREADO AL FINAL DEL ARCHIVO
#- 'mariadb_galera_data:/bitnami/mariadb'
# PERSISTENCIA EN SISTEMA DE ARCHIVOS O ALMACENAMIENTO EXTERNO
#- /path/to/mariadb-persistence:/bitnami/mariadb
#FIN PERSISTENCIA
#Configuration file
#https://github.com/bitnami/bitnami-docker-mariadb-galera#configuration-file
#- /path/to/my_custom.cnf:/opt/bitnami/mariadb/conf/my_custom.cnf:ro
#- /path/to/cert.pem:/bitnami/mariadb/certs/cert.pem:ro
#- /path/to/key.pem:/bitnami/mariadb/certs/key.pem:ro
#- /path/to/ca.pem:/bitnami/mariadb/certs/ca.pem:ro
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
#- MARIADB_CHARACTER_SET= utf8
#- MARIADB_ENABLE_SSL=yes
# LOS CERTIFICADOS DEBEN SER CARGADOS EN LOS VOLÚMENES DE ARRIBA DEL DOCUMENTOS. LAS SIGUIENTES RUTAS NO SE MODIFICAN. DOCUMENTACIÓN:
#https://github.com/bitnami/bitnami-docker-mariadb-galera#start-mariadb-galera-with-secured-traffic
#https://github.com/bitnami/bitnami-docker-mariadb-galera#connecting-over-tls
#- MARIADB_TLS_CERT_FILE=/bitnami/mariadb/certs/cert.pem
#- MARIADB_TLS_KEY_FILE=/bitnami/mariadb/certs/key.pem
#- MARIADB_TLS_CA_FILE=/bitnami/mariadb/certs/ca.pem
#- MARIADB_COLLATION = utf8_general_ci
#Flags to be appended to the startup command. No defaults
#- MARIADB_EXTRA_FLAGS=--max-connect-errors=1000 --max_connections=155
#The database admin user. Defaults to root.
#- MARIADB_ROOT_USER: nuevo_usuario_root
- MARIADB_ROOT_PASSWORD= root
#- MARIADB_DATABASE=my_database
#- MARIADB_USER=my_user
#- MARIADB_PASSWORD=my_user_pass
#Enabling LDAP support
#https://github.com/bitnami/bitnami-docker-mariadb-galera#enabling-ldap-support
#- MARIADB_ENABLE_LDAP=yes
#- LDAP_URI=ldap://ldap.example.org/
#- LDAP_BASE=dc=example,dc=org
#- LDAP_BIND_DN=cn=admin,dc=example,dc=org
#- LDAP_BIND_PASSWORD=admin
#Setting up a multi-master cluster
#https://github.com/bitnami/bitnami-docker-mariadb-galera#setting-up-a-multi-master-cluster
#VARIABLES PARA BOOTSTRAP
- MARIADB_GALERA_CLUSTER_BOOTSTRAP=yes
- MARIADB_GALERA_CLUSTER_NAME=my_galera
- MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
- MARIADB_GALERA_MARIABACKUP_PASSWORD=my_mariabackup_password
#volumes:
# mariadb_galera_data:
# driver: local
version: '2'
services:
mariadb-galera:
mariadb-galera-nodo:
image: 'bitnami/mariadb-galera:10.3'
ports:
- '3306:3306'
- '4444:4444'
- '4567:4567'
- '4568:4568'
volumes:
- 'mariadb_galera_data:/bitnami/mariadb'
-v /path/to/cert.pem:/bitnami/mariadb/certs/cert.pem:ro
-v /path/to/key.pem:/bitnami/mariadb/certs/key.pem:ro
-v /path/to/ca.pem:/bitnami/mariadb/certs/ca.pem:ro
- '23306-23406:3306'
- '24444-24544:4444'
- '24567-24667:4567'
- '24568-24668:4568'
#volumes:
# INICIO PERSISTENCIA
# SE DEBE ESCOGER UNA DE LAS 2 SIGUIENTES OPCIONES
# VOLUMEN LÓGICO CREADO AL FINAL DEL ARCHIVO
# - 'mariadb_galera_data:/bitnami/mariadb'
# PERSISTENCIA EN SISTEMA DE ARCHIVOS O ALMACENAMIENTO EXTERNO
#- /path/to/mariadb-persistence:/bitnami/mariadb
#FIN PERSISTENCIA
#- /path/to/my_custom.cnf:/opt/bitnami/mariadb/conf/my_custom.cnf:ro
#- /path/to/cert.pem:/bitnami/mariadb/certs/cert.pem:ro
#- /path/to/key.pem:/bitnami/mariadb/certs/key.pem:ro
#- /path/to/ca.pem:/bitnami/mariadb/certs/ca.pem:ro
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_CHARACTER_SET= utf8
-e MARIADB_ENABLE_SSL=yes \
-e MARIADB_TLS_CERT_FILE=/bitnami/mariadb/certs/cert.pem \
-e MARIADB_TLS_KEY_FILE=/bitnami/mariadb/certs/key.pem \
-e MARIADB_TLS_CA_FILE=/bitnami/mariadb/certs/ca.pem \
bitnami/mariadb-galera:latest
- MARIADB_COLLATION = utf8_general_ci
- MARIADB_EXTRA_FLAGS=--max-connect-errors=1000 --max_connections=155
- MARIADB_ROOT_PASSWORD=root
- MARIADB_DATABASE=my_database
- MARIADB_USER=cgonzalezv
- MARIADB_PASSWORD=cgonzalezv
#- MARIADB_CHARACTER_SET= utf8
#- MARIADB_ENABLE_SSL=yes
# LOS CERTIFICADOS DEBEN SER CARGADOS EN LOS VOLÚMENES DE ARRIBA DEL DOCUMENTOS. LAS SIGUIENTES RUTAS NO SE MODIFICAN. DOCUMENTACIÓN:
#https://github.com/bitnami/bitnami-docker-mariadb-galera#start-mariadb-galera-with-secured-traffic
#https://github.com/bitnami/bitnami-docker-mariadb-galera#connecting-over-tls
#- MARIADB_TLS_CERT_FILE=/bitnami/mariadb/certs/cert.pem
#- MARIADB_TLS_KEY_FILE=/bitnami/mariadb/certs/key.pem
#- MARIADB_TLS_CA_FILE=/bitnami/mariadb/certs/ca.pem
#- MARIADB_COLLATION = utf8_general_ci
#Flags to be appended to the startup command. No defaults
#- MARIADB_EXTRA_FLAGS=--max-connect-errors=1000 --max_connections=155
#The database admin user. Defaults to root.
#- MARIADB_ROOT_USER: nuevo_usuario_root
#- MARIADB_ROOT_PASSWORD: root
#- MARIADB_DATABASE=my_database
#- MARIADB_USER=my_user
#- MARIADB_PASSWORD=my_user_pass
#Enabling LDAP support
#https://github.com/bitnami/bitnami-docker-mariadb-galera#enabling-ldap-support
#- MARIADB_ENABLE_LDAP=yes
#- LDAP_URI=ldap://ldap.example.org/
#- LDAP_BASE=dc=example,dc=org
#- LDAP_BIND_DN=cn=admin,dc=example,dc=org
#- LDAP_BIND_PASSWORD=admin
#Setting up a multi-master cluster
#https://github.com/bitnami/bitnami-docker-mariadb-galera#setting-up-a-multi-master-cluster
#VARIABLES PARA UNIRSE A CLÚSTER EXISTENTE.
- MARIADB_GALERA_CLUSTER_NAME=my_galera
- MARIADB_GALERA_CLUSTER_ADDRESS=gcomm://mariadb-galera-bootstrap
- MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
- MARIADB_GALERA_MARIABACKUP_PASSWORD=my_mariabackup_password
volumes:
mariadb_galera_data:
driver: local
#Slow filesystems
#https://github.com/bitnami/bitnami-docker-mariadb-galera#slow-filesystems
#-MARIADB_INIT_SLEEP_TIME= SEGUNDOS
#volumes:
# mariadb_galera_data:
# driver: local
version: '2'
services:
mariadb-galera-nodo:
image: 'bitnami/mariadb-galera:10.3'
ports:
- '23306-23406:3306'
- '24444-24544:4444'
- '24567-24667:4567'
- '24568-24668:4568'
#volumes:
# INICIO PERSISTENCIA
# SE DEBE ESCOGER UNA DE LAS 2 SIGUIENTES OPCIONES
# VOLUMEN LÓGICO CREADO AL FINAL DEL ARCHIVO
# - 'mariadb_galera_data:/bitnami/mariadb'
# PERSISTENCIA EN SISTEMA DE ARCHIVOS O ALMACENAMIENTO EXTERNO
#- /path/to/mariadb-persistence:/bitnami/mariadb
#FIN PERSISTENCIA
#- /path/to/my_custom.cnf:/opt/bitnami/mariadb/conf/my_custom.cnf:ro
#- /path/to/cert.pem:/bitnami/mariadb/certs/cert.pem:ro
#- /path/to/key.pem:/bitnami/mariadb/certs/key.pem:ro
#- /path/to/ca.pem:/bitnami/mariadb/certs/ca.pem:ro
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
#- MARIADB_CHARACTER_SET= utf8
#- MARIADB_ENABLE_SSL=yes
# LOS CERTIFICADOS DEBEN SER CARGADOS EN LOS VOLÚMENES DE ARRIBA DEL DOCUMENTOS. LAS SIGUIENTES RUTAS NO SE MODIFICAN. DOCUMENTACIÓN:
#https://github.com/bitnami/bitnami-docker-mariadb-galera#start-mariadb-galera-with-secured-traffic
#https://github.com/bitnami/bitnami-docker-mariadb-galera#connecting-over-tls
#- MARIADB_TLS_CERT_FILE=/bitnami/mariadb/certs/cert.pem
#- MARIADB_TLS_KEY_FILE=/bitnami/mariadb/certs/key.pem
#- MARIADB_TLS_CA_FILE=/bitnami/mariadb/certs/ca.pem
#- MARIADB_COLLATION = utf8_general_ci
#Flags to be appended to the startup command. No defaults
#- MARIADB_EXTRA_FLAGS=--max-connect-errors=1000 --max_connections=155
#The database admin user. Defaults to root.
#- MARIADB_ROOT_USER: nuevo_usuario_root
#- MARIADB_ROOT_PASSWORD: root
#- MARIADB_DATABASE=my_database
#- MARIADB_USER=my_user
#- MARIADB_PASSWORD=my_user_pass
#Enabling LDAP support
#https://github.com/bitnami/bitnami-docker-mariadb-galera#enabling-ldap-support
#- MARIADB_ENABLE_LDAP=yes
#- LDAP_URI=ldap://ldap.example.org/
#- LDAP_BASE=dc=example,dc=org
#- LDAP_BIND_DN=cn=admin,dc=example,dc=org
#- LDAP_BIND_PASSWORD=admin
#Setting up a multi-master cluster
#https://github.com/bitnami/bitnami-docker-mariadb-galera#setting-up-a-multi-master-cluster
#VARIABLES PARA UNIRSE A CLÚSTER EXISTENTE.
- MARIADB_GALERA_CLUSTER_NAME=my_galera
- MARIADB_GALERA_CLUSTER_ADDRESS=gcomm://mariadb-galera-bootstrap
- MARIADB_GALERA_MARIABACKUP_USER=my_mariabackup_user
- MARIADB_GALERA_MARIABACKUP_PASSWORD=my_mariabackup_password
#Slow filesystems
#https://github.com/bitnami/bitnami-docker-mariadb-galera#slow-filesystems
#-MARIADB_INIT_SLEEP_TIME= SEGUNDOS
#volumes:
# mariadb_galera_data:
# driver: local
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment