mosquitto-with-auth/mosquitto-start.sh

20 lines
326 B
Bash
Raw Normal View History

#!/bin/bash
IMAGE=registry.gitlab.com/wolutator/mosquitto-with-auth:latest
VOLUME=mosquitto-config
docker volume inspect $VOLUME > /dev/null || docker volume create $VOLUME
docker pull $IMAGE
docker run \
2019-06-11 23:03:36 +02:00
-d \
--rm \
-p1883:1883 \
-v $VOLUME:/opt/etc/mosquitto \
--link mariadb \
--name mosquitto \
2019-06-11 23:03:36 +02:00
$IMAGE