Browse Source

docker-compose fix for mqtt

master
Dirk Alders 1 year ago
parent
commit
6b3f3aad0b
1 changed files with 4 additions and 13 deletions
  1. 4
    13
      mqtt/docker-compose.template

+ 4
- 13
mqtt/docker-compose.template View File

@@ -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…
Cancel
Save