Browse Source

return HA to 'network: host' mode

Blaine Story 1 năm trước cách đây
mục cha
commit
e1256798e8
1 tập tin đã thay đổi với 13 bổ sung27 xóa
  1. 13 27
      plays/nas-services.yml

+ 13 - 27
plays/nas-services.yml

@@ -55,41 +55,27 @@
         active: true
         image: ghcr.io/home-assistant/home-assistant:stable
         privileged: true
-        ports:
-          - 137:137
-          - 138:138
-          - 139:139
-          - 323:323
-          - 445:445
-          - 1900:1900
-          - 4330:4330
-          - 4331:4331
-          - 5353:5353
-          - 6379:6379
-          - 8008:8008
-          - 8080:8080
-          - 8081:8081
-          - 8086:8086
-          - 8088:8088
-          - 8123:8123
-          - 9091:9091
-          - 34464:34464
-          - 38439:38439
-          - 38975:38975
-          - 40000:40000
-          - 42298:42298
-          - 44321:44321
-          - 44322:44322
-          - 44323:44323
+        network_mode: host
         environment:
           - TZ=America/Los_Angeles
         devices:
-          - /dev/ptmx:/dev/ptmx
           - /dev/ttyUSB0:/dev/ttyUSB0
         volumes:
           - /opt/homeassistant:/config
           - /run/dbus:/run/dbus:ro
         restart: unless-stopped
+
+      - name: mqtt
+        active: true
+        image: eclipse-mosquitto
+        ports:
+          - 1883:1883
+          - 9001:9001
+        volumes:
+          - /opt/mqtt/config:/mosquitto/config
+          - /opt/mqtt/data:/mosquitto/data
+          - /opt/mqtt/logs:/mosquitto/log
+        restart: unless-stopped
         networks:
           - jarvis