Update 'README.md'

This commit is contained in:
tkl 2019-02-28 10:05:57 +00:00
parent 88ebe37d60
commit 0fd310d7ca

View File

@ -4,7 +4,16 @@
## Run
```sh
docker run -d -p 1883:1883 -p 8883:8883 -v /srv/mqtt_logger/mqtt:/var/log/mqtt --name mqtt-logger --restart always mqtt-logger
```shell
docker run \
-d \
-p 8883:8883 \
-v /srv/mqtt_logger/conf.d/:/etc/mosquitto \
-v /srv/mqtt_logger/mqtt:/var/log/mqtt \
-v /etc/letsencrypt/live/mqtt.blackfinn.de:/etc/letsencrypt/live/mqtt.blackfinn.de \
-v /etc/letsencrypt/archive/mqtt.blackfinn.de:/etc/letsencrypt/archive/mqtt.blackfinn.de \
--name mqtt-logger \
--restart always \
mqtt-logger
```