create user in dockerfile, add start script for container

This commit is contained in:
2019-06-11 22:55:54 +02:00
parent 1b83780327
commit 5bf0db7108
2 changed files with 27 additions and 1 deletions

19
mosquitto-start.sh Executable file
View File

@ -0,0 +1,19 @@
#!/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