diff --git a/docker/mqtt/Dockerfile b/docker/mqtt/Dockerfile index d571f5a..f18da1d 100644 --- a/docker/mqtt/Dockerfile +++ b/docker/mqtt/Dockerfile @@ -1,5 +1,7 @@ FROM node:16-alpine3.15 +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories +RUN sed -i 's/dl-4.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories RUN apk --no-cache add mosquitto mosquitto-clients RUN npm install -g forever diff --git a/docker/mqtt/mosquitto.conf b/docker/mqtt/mosquitto.conf index c25aa5d..8441e97 100644 --- a/docker/mqtt/mosquitto.conf +++ b/docker/mqtt/mosquitto.conf @@ -1,4 +1,6 @@ listener 1883 +listener 9001 +protocol websockets allow_anonymous false log_dest stdout password_file /mospass.txt \ No newline at end of file