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