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
@@ -18,7 +19,7 @@ The port is 3306. It exists inside the docker network so you can connect via `ma
18
19
19
20
Before starting the stack, edit the `docker-compose.yml` file and check your environment variables. In particular:
20
21
21
-
```
22
+
```yaml
22
23
environment:
23
24
- TZ=Etc/UTC
24
25
- MYSQL_ROOT_PASSWORD=
@@ -67,9 +68,9 @@ To close the terminal session, either:
67
68
* type "exit" and press <kbd>return</kbd>; or
68
69
* press <kbd>control</kbd>+<kbd>d</kbd>.
69
70
70
-
## Container health check
71
+
## <a name="healthCheck"></a>Container health check
71
72
72
-
### theory of operation
73
+
### <a name="healthCheckTheory"></a>theory of operation
73
74
74
75
A script , or "agent", to assess the health of the MariaDB container has been added to the *local image* via the *Dockerfile*. In other words, the script is specific to IOTstack.
75
76
@@ -87,11 +88,11 @@ The agent is invoked 30 seconds after the container starts, and every 30 seconds
87
88
mysqld is alive
88
89
```
89
90
90
-
3. If the command returned the expected response, the agent tests the responsiveness of the TCP port the `mysqld` daemon should be listening on (see [customising health-check](#customising-health-check)).
91
+
3. If the command returned the expected response, the agent tests the responsiveness of the TCP port the `mysqld` daemon should be listening on (see [customising health-check](#healthCheckCustom)).
91
92
92
93
4. If all of those steps succeed, the agent concludes that MariaDB is functioning properly and returns "healthy".
0 commit comments