Browse Source

move homeassistant behind jarvis network

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

+ 29 - 1
plays/nas-services.yml

@@ -55,15 +55,43 @@
         active: true
         image: ghcr.io/home-assistant/home-assistant:stable
         privileged: true
-        network_mode: host
+        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
         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
+        networks:
+          - jarvis
 
       - name: sickchill
         active: true