https://github.com/garutilorenzo/mysqlrouter
Unofficial MySQL Router docker image
https://github.com/garutilorenzo/mysqlrouter
databases docker docker-container docker-image mysql mysql-router mysqlrouter
Last synced: 11 months ago
JSON representation
Unofficial MySQL Router docker image
- Host: GitHub
- URL: https://github.com/garutilorenzo/mysqlrouter
- Owner: garutilorenzo
- License: gpl-3.0
- Created: 2021-02-24T10:54:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-30T11:08:19.000Z (almost 4 years ago)
- Last Synced: 2025-02-27T05:11:31.029Z (over 1 year ago)
- Topics: databases, docker, docker-container, docker-image, mysql, mysql-router, mysqlrouter
- Language: Shell
- Homepage:
- Size: 39.1 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/garutilorenzo/mysqlrouter/issues)

[](https://github.com/garutilorenzo/mysqlrouter/network)
[](https://github.com/garutilorenzo/laravel-docker/stargazers)
# MySQL Router docker image
* [MySQL Router](https://dev.mysql.com/doc/mysql-router/8.0/en/) - MySQL Router is part of InnoDB Cluster, and is lightweight middleware that provides transparent routing between your application and back-end MySQL Servers
## Differences from official mysql router image
* MySQL Router runs in /app/mysqlrouter
* MySQL Router persist configurations on /app/mysqlrouter path (if volume is attached see docker-compose.yml)
* MySQL Router run a [bootstrap](https://dev.mysql.com/doc/mysql-router/8.0/en/mysql-router-deploying-bootstrapping.html) only if no configuration is found in /app/mysqlrouter
* Healtcheck is disabled by default, it can be enabled if necessary (see docker-compose.yml.healtcheck)
* MySQL Router doesn't wait for all cluster members to be up
## Environment variables
This container accept this environment variables:
| Variable | Required | Description |
| ------- | -------- | ----------- |
| `MYSQL_HOST` | `yes` | master node |
| `MYSQL_PORT` | `yes` | mysql port |
| `MYSQL_USER` | `yes` | mysql user with necessary grants |
| `MYSQL_PASSWORD` | `yes` | password of MYSQL_USER |
| `MYSQL_HC_USER` | `no` | mysql healtcheck user with necessary grants (optional) |
| `MYSQL_HC_PASWORD` | `no` | mysql healtcheck user password (optional)
| `MYSQL_ROUTER_ACCOUNT` | `no` | mysql user created when mysqlrouter run a bootstrap |
| `MYSQL_ROUTER_PASSWORD` | `no` | password of MYSQL_ROUTER_ACCOUNT |