瀏覽代碼

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

Loading…
取消
儲存