You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,21 @@
12
12
13
13
* MySQL Router runs in /app/mysqlrouter
14
14
* MySQL Router persist configurations on /app/mysqlrouter path (if volume is attached see docker-compose.yml)
15
-
* MySQL Router run a "bootstrap" only if no configuration is found in /app/mysqlrouter
15
+
* 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
16
16
* Healtcheck is disabled by default, it can be enabled if necessary (see docker-compose.yml.healtcheck)
17
17
* MySQL Router doesn't wait for all cluster members to be up
18
18
19
19
## Environment variables
20
-
* MYSQL_HOST: master node
21
-
* MYSQL_PORT: mysql port
22
-
* MYSQL_USER: mysql user with necessary grants
23
-
* MYSQL_PASSWORD: mysql user password
24
-
* MYSQL_HC_USER: mysql healtcheck user with necessary grants (optional)
25
-
* MYSQL_HC_PASWORD: mysql healtcheck user password (optional)
20
+
21
+
This container accept this environment variables:
22
+
23
+
| Variable | Required | Description |
24
+
| ------- | -------- | ------- | ----------- |
25
+
|`MYSQL_HOST`|`yes`| master node |
26
+
|`MYSQL_PORT`|`yes`| mysql port |
27
+
|`MYSQL_USER`|`yes`| mysql user with necessary grants |
28
+
|`MYSQL_PASSWORD`|`yes`| password of MYSQL_USER |
29
+
|`MYSQL_HC_USER`|`no`| mysql healtcheck user with necessary grants (optional) |
30
+
| `MYSQL_HC_PASWORD` | `no` | mysql healtcheck user password (optional)
31
+
|`MYSQL_ROUTER_ACCOUNT`|`no`| mysql user created when mysqlrouter run a bootstrap |
32
+
|`MYSQL_ROUTER_PASSWORD`|`no`| password of MYSQL_ROUTER_ACCOUNT |
0 commit comments