2024-05-17 07:49:08 +00:00
|
|
|
FROM eclipse-mosquitto:injected-version
|
|
|
|
|
|
|
|
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
|
2024-05-17 09:19:40 +00:00
|
|
|
org.label-schema.vcs-url="https://github.com/benzine-framework/docker-mqtt" \
|
|
|
|
org.opencontainers.image.source="https://github.com/benzine-framework/docker-mqtt"
|
2024-05-17 07:49:08 +00:00
|
|
|
|
|
|
|
COPY mosquitto.conf /mosquitto/config/mosquitto.conf
|
|
|
|
|
|
|
|
RUN adduser -D mqtt
|
|
|
|
USER mqtt
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=15s --timeout=3s --start-period=10s --retries=5 \
|
|
|
|
CMD mosquitto_sub -h localhost -t '$SYS/#' -C 1 -W 3
|