mosquitto-with-auth/mosquitto-start.sh

22 lines
358 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 \
2019-06-12 12:28:07 +02:00
-p8883:8883 \
-p9001:9001 \
-v $VOLUME:/opt/etc/mosquitto \
--link mariadb \
--name mosquitto \
2019-06-11 23:03:36 +02:00
$IMAGE