Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Docker Container to configure a MySQL/Percona/MariaDB server as replication master.

Notifications You must be signed in to change notification settings

Ozymandias42/dbmaster-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockerfile
NOTE: DOES NOT WORK WITH mysql:latest as that uses MySQL 8 which has problems with passwort authentication on commandline.
See the setup-slave.sh in the repo.
This Container acts as setup script to turn a MySQL/Percona/MariaDB container into a database replication slave.
Tags:
alpine -- uses alpine linux image.
stable -- uses mysql:5.7
latest -- uses mysql:latest

ENVIRONMENT VARIABLES:
DB_ROOT_USER -- defaults to root
DB_ROOT_PASS
DB_PORT -- defaults to the standard 3306
DB_MAXSCALE_USER -- optional when used with MariaDB Maxscale
DB_MAXSCALE_PASS -- optional when used with MariaDB Maxscale
DB_HOSTNAME
DB_SLAVE_USER
DB_SLAVE_PASS

If DB_MAXSCALE_USER and DB_MAXSCALE_PASS are set the set user will get created on the master and given the permissions required by MariaDB Maxscale see: https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-mariadb-maxscale-configuration-usage-scenarios/#service

About

Docker Container to configure a MySQL/Percona/MariaDB server as replication master.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages