Docker-MQTT/Dockerfile
2024-05-17 11:19:40 +02:00

13 lines
488 B
Docker

FROM eclipse-mosquitto:injected-version
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
org.label-schema.vcs-url="https://github.com/benzine-framework/docker-mqtt" \
org.opencontainers.image.source="https://github.com/benzine-framework/docker-mqtt"
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