Sign inSign up

wongtawan/mysql

By wongtawan

Updated almost 7 years ago

mysql for testing mysql replication with GTID (integrated with consul client)

Image
0

901

wongtawan/mysql repository overview

Environment Variable :

ROLE=master | slave
MYSQL_ROOT_PASSWORD=xxxxxxxx
MYSQL_MASTER_ROOT_PASSWORD=xxxxxxxx (only slave) [ default value if unset : ${MYSQL_ROOT_PASSWORD} ] for dump all data from master
MYSQL_MASTER_HOST=xxxxxxxx (only slave) [ default value if unset : haproxy.service.consul ] 
MYSQL_SERVER_ID=xxxxxxxx
CONSUL_SERVER=xx.xx.xx.xx
DATACENTER=xxxxxxxx
HOLD=true | false (use for tell the container to not register mysql service consul during the starting process)

config file of mysql server is /etc/my.cnf

scripts for update config is /mysql-update.config (this script will be executed during the starting process)

Tag summary

Content type

Image

Digest

Size

124.1 MB

Last updated

almost 7 years ago

docker pull wongtawan/mysql