Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. iobroker synology docker Vorschlag

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    iobroker synology docker Vorschlag

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      handy80 last edited by

      Hi Leute,
      mit euch würde ich gerne folgendes Proposal diskutieren.

      Titel: iobroker auf synology mit docker compose und macvlan, iobroker, influx, redis, deconz, fhem, homebridge, ...

      Scenario:
      Synology 1813+ (4 Netzwerk interfaces, 2 USB Anschlüsse) mit docker

      • ioBroker (als Steuerzentrale (mit smartcontrol, heatingcontrol)
      • fhem (als Homematic zentrale mit busware homematic USB Stick)
      • deconz (als Zigbee gateway mit CONBEE2 USB Stick)
      • homebridge (für die Integration nach Apple/Siri)
      • redis (für states und irgendwann objects von ioBroker)
      • influxDB für Time-Series -> grafana dashboards (z.B. Heizungs-Auswertungen)
      • MQTT (einfachheitshalber in Synology Paketzentrum aktiviert)
      • macvlan auf eth3 (das ist das vierte Netzwerkinterface) auf subnet 172.16.1.0/24
      • Router/Switch mit CLASS B private Network 172.16.0.1/16 (DHCP) auf Unify Dream Machine Pro
      • DNS ?

      Das Ziel sollte sein, dass

      • die hosts per Namen (DNS) ansprechbar sind
      • wenn möglich kein Port-Mapping nötig
      • startet alles automatisch
      • persitenz auf der Synology
      • ???

      Würde unter den oben beschriebenen Bedingungen folgendes funktionieren?
      Docker compose (proposal), vielleicht unten angefangen mit dem netzwerk-setup.

       
      version: "2"
       
      services:
       
        iobroker:
          container_name: iobroker_production
          image: buanet/iobroker:latest-v5
          hostname: iobroker
          restart: always
          networks:
            ioBroker-network:
              ipv4_address: 172.16.1.8
          volumes:
            - /volume1/docker/iobroker_data:/opt/iobroker
          environment:
            - DEBIAN_FRONTEND=teletype
            - LANG=de_DE.UTF‑8
            - LANGUAGE=de_DE:de
            - LC_ALL=de_DE.UTF‑8
            - SETGID=100
            - SETUID=1028
            - TZ=Europe/Berlin
            - AVAHI=true
            - IOB_ADMINPORT=8081
            - IOB_MULTIHOST=master
            - PACKAGES=nano
            - ZWAVE=false
            - USBDEVICES=none
            - IOB_STATESDB_HOST=172.16.1.9
            - IOB_STATESDB_PORT=6379
            - IOB_STATESDB_TYPE=redis
          depends_on:
            - redis
            - influxdb
       
      
          fhem:
              container_name: fhem
              image: fhem/fhem:latest
              hostname: fhem
              restart: always
              networks:
                ioBroker-network:
                  ipv4_address: 172.16.1.10
              volumes:
                  - /volume1/docker/fhem_data:/opt/fhem/
              environment:
                  FHEM_GID: 100
                  FHEM_UID: 1028
                  TIMEOUT: 10
                  RESTART: 1
                  TELNETPORT: 7072
                  TZ: Europe/Berlin
      
       influxdb:
          container_name: influxdb
          image: influxdb:latest
          hostname: influxdb
          restart: always
          networks:
           ioBroker-network:
            ipv4_address: 172.16.1.11
          volumes:
            - /volume1/docker/influxdb_data:/var/lib/influxdb
          environment:
            - TZ="Europe/Berlin"
            - INFLUXDB_USER_PASSWORD=another_secret
            - INFLUXDB_HTTP_AUTH_ENABLED=true
            - INFLUXDB_ADMIN_USER=admin
            - INFLUXDB_ADMIN_PASSWORD=secret
            - INFLUXDB_DB=iobroker
            - INFLUXDB_USER=iouser
      
      
        redis:
          container_name: redis
          image: redis:latest
          hostname: redis
          restart: always
          networks:
            ioBroker-network:
              ipv4_address: 172.16.1.9
          volumes:
            - /volume1/docker/redis_data:/data
       
        deconz:
          container_name: deconz
          image: marthoc/deconz
          hostname: deconz
          restart: always
          networks:
            ioBroker-network:
              ipv4_address: 172.16.1.12
          volumes:
            - /etc/localtime:/etc/localtime
            - /volume1/docker/deconz_data:/root/.local/share/dresden-elektronik/deCONZ
          environment:
            - DEBIAN_FRONTEND=noninteractive
            - DECONZ_WEB_PORT=8900
            - DECONZ_WS_PORT=8901
            - DEBUG_INFO=1
            - DEBUG_APS=0
            - DEBUG_ZCL=0
            - DEBUG_ZDP=0
            - DEBUG_OTAU=1
            - DECONZ_DEVICE=0
            - DECONZ_VNC_MODE=1
            - DECONZ_VNC_DISPLAY=0
            - DECONZ_VNC_PASSWORD=even_more_secrets
            - DECONZ_VNC_PORT=5900
            - DECONZ_UPNP=1
      
      
        homebridge:
          container_name: homebridge
          image: oznu/homebridge:ubuntu
          hostname: homebridge
          restart: always
          networks:
            ioBroker-network:
              ipv4_address: 172.16.1.13
          volumes:
            - /volume1/docker/homebridge_data:/homebridge
          environment:
            - PGID=100
            - PUID=1028
            - HOMEBRIDGE_CONFIG_UI=1
            - HOMEBRIDGE_CONFIG_UI_PORT=8087
            - TZ=Europe/Berlin
            - ENABLE_AVAHI=0
            - DSM_HOSTNAME=DSM_HOST_NAME
          depends_on:
            - deconz
      
      networks:
        ioBroker-network:
          driver: macvlan
          driver_opts:
            parent: eth3
          ipam:
            config:
              - subnet: 172.16.0.0/16
                gateway: 172.16.1.1
                ip_range: 172.16.1.0/24
                aux_addresses:
                  net-address: 172.16.1.2
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      612
      Online

      31.9k
      Users

      80.2k
      Topics

      1.3m
      Posts

      1
      1
      364
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo