MySQL 8 - Docker, Docker-compose - Primary & Replica for testing.
DockerfileMIT
MySQL 8 Docker, with primary and replica
How To use this project, a little prep work is needed.
Working withDockercreds:
Createafile called .envintherootoftheprojectandaddthe following:
MYSQL_ROOT_PASSWORD=s3cr3t
Replica password
The replica password used fortesting isin the replica.sql file. I would recommend changing this password with an alter user command.
An example of this is in the primary.sql file.
To build and start the containers
make start
To stop the containers and remove the containers and volumes.