Skip to content

Commit ee992f0

Browse files
committed
restore previous anchor names
Signed-off-by: Phill Kelley <[email protected]>
1 parent 4016eef commit ee992f0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/Containers/Mosquitto.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $ cd ~/IOTstack
8282
$ docker-compose up -d
8383
```
8484

85-
> See also the [Migration considerations](#migration-considerations) (below).
85+
> See also the [Migration considerations](#migration) (below).
8686
8787
`docker-compose` reads the *Compose* file. When it arrives at the `mosquitto` fragment, it finds:
8888

@@ -107,7 +107,7 @@ Note:
107107
108108
```
109109

110-
The single-line `build` produces *exactly* the same result as the four-line `build`, save that the single-line form does not support [pinning Mosquitto to a specific version](#mosquitto-version-pinning).
110+
The single-line `build` produces *exactly* the same result as the four-line `build`, save that the single-line form does not support [pinning Mosquitto to a specific version](#versionPinning).
111111

112112
The `./.templates/mosquitto/.` path associated with the `build` tells `docker-compose` to look for:
113113

@@ -159,7 +159,7 @@ You *may* see the same pattern in Portainer, which reports the *base image* as "
159159

160160
> Whether you see one or two rows depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
161161
162-
### <a name="migration-considerations"></a>Migration considerations
162+
### <a name="migration"></a>Migration considerations
163163

164164
Under the original IOTstack implementation of Mosquitto (just "as it comes" from *DockerHub*), the service definition expected the configuration files to be at:
165165

@@ -318,7 +318,7 @@ $ docker exec mosquitto mosquitto_passwd -b /mosquitto/pwfile/pwfile hello world
318318

319319
Note:
320320

321-
* See also [customising health-check](#customising-health-check). If you are creating usernames and passwords, you may also want to create credentials for the health-check agent.
321+
* See also [customising health-check](#healthCheckCustom). If you are creating usernames and passwords, you may also want to create credentials for the health-check agent.
322322

323323
#### check password file
324324

@@ -514,7 +514,7 @@ The agent is invoked 30 seconds after the container starts, and every 30 seconds
514514
* Subscribes to the same broker for the same topic for a single message event.
515515
* Compares the payload sent with the payload received. If the payloads (ie time-stamps) match, the agent concludes that the Mosquitto broker (the process running inside the same container) is functioning properly for round-trip messaging.
516516

517-
### <a name="monitoring-health-check"></a>monitoring health-check
517+
### <a name="healthCheckMonitor"></a>monitoring health-check
518518

519519
Portainer's *Containers* display contains a *Status* column which shows health-check results for all containers that support the feature.
520520

@@ -560,7 +560,7 @@ Notes:
560560
* If you enable authentication for your Mosquitto broker, you will need to add `-u «user»` and `-P «password»` parameters to this command.
561561
* You should expect to see a new message appear approximately every 30 seconds. That indicates the health-check agent is functioning normally. Use <kbd>control</kbd>+<kbd>c</kbd> to terminate the command.
562562

563-
### <a name="customising-health-check"></a>customising health-check
563+
### <a name="healthCheckCustom"></a>customising health-check
564564

565565
You can customise the operation of the health-check agent by editing the `mosquitto` service definition in your *Compose* file:
566566

@@ -580,7 +580,7 @@ You can customise the operation of the health-check agent by editing the `mosqui
580580

581581
Note:
582582

583-
* You will also need to use the same topic string in the `mosquitto_sub` command shown at [monitoring health-check](#monitoring-health-check).
583+
* You will also need to use the same topic string in the `mosquitto_sub` command shown at [monitoring health-check](#healthCheckMonitor).
584584

585585
3. If you have enabled authentication for your Mosquitto broker service, you will need to provide appropriate credentials for your health-check agent:
586586

@@ -651,7 +651,7 @@ Your existing Mosquitto container continues to run while the rebuild proceeds. O
651651

652652
The `prune` is the simplest way of cleaning up. The first call removes the old *local image*. The second call cleans up the old *base image*. Whether an old *base image* exists depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
653653

654-
### <a name="mosquitto-version-pinning"></a>Mosquitto version pinning
654+
### <a name="versionPinning"></a>Mosquitto version pinning
655655

656656
If an update to Mosquitto introduces a breaking change, you can revert to an earlier know-good version by pinning to that version. Here's how:
657657

0 commit comments

Comments
 (0)