浏览代码

docker-compose fix for mqtt

master
Dirk Alders 1年前
父节点
当前提交
6b3f3aad0b
共有 1 个文件被更改,包括 4 次插入13 次删除
  1. 4
    13
      mqtt/docker-compose.template

+ 4
- 13
mqtt/docker-compose.template 查看文件

3
 
3
 
4
   mqtt:
4
   mqtt:
5
     build: mqtt
5
     build: mqtt
6
-    volumes:
7
-      - type: bind
8
-        source: /home/dirk/tmp/mqtt/
9
-        target: /mosquitto/
10
     ports:
6
     ports:
11
-      - target: 1883
7
+      - "1883:1883"
12
-        published: 1883
8
+      - "9001:9001"
13
-        protocol: tcp
9
+    volumes:
14
-        mode: host
10
+      - /opt/mqtt:/mosquitto
15
-      - target: 9001
16
-        published: 9001
17
-        protocol: tcp
18
-        mode: host
19
-

正在加载...
取消
保存