mosquitto-with-auth/mosquitto-start.sh

20 lines
337 B
Bash
Executable File

#!/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 \
-it \
--rm \
-p1883:1883 \
-v $VOLUME:/opt/etc/mosquitto \
--link mariadb \
--name mosquitto \
$IMAGE /bin/bash