Install & maintain openHAB on Raspi in Docker together with Mosquitto, Duplicati, influxDB, Samba etc - Step by step instruction

Minor update on the Duplicati-part (forcing update to latest version and adding enviroment variable for the (at least in my case) now-mandatory password.

Thank you for your helpful work.
I used your docker-compose.yml with samba, mosquitto, frontail and openhab.
Opening \docker on windows shows the shares but I do not have write permissions, e.g. to configure mosquitto by changing mosquitto.conf.
Do I have to add a user with write access? Possibly using commands like:

>command: '-w PRIVAT -s "scaner_ro;/mnt2;yes;yes;no;alice,bob;none;none;Scaner Volume RO" -s "scaner_rw;/mnt2;yes;no;no;alice;none;none;Scaner Volume RW" -u "alice;pwa" -u "bob;pwb" -n -p'

mentioned in
https://forums.docker.com/t/issue-with-samba-dperson-config/125072/3

Short answer: I don’t know.

From what I know, my configuration should work without username/password. Sometimes it does, sometimes it doesn’t (but without me changing anything, so also without me being able to reproduce). Maybe it has to do with what’s mentioned in the link you provided?

To counter this, I’ve also tried adding specific username/password-details wich, sometimes work, and sometimes doesn’t.

So in case you find out more, feel free to let me know so that I can test on my end and eventually edit my description at the very top.

I deleted all containers, images, corresponding volumes and started and used this docker-compose.yml:

## Version, die openhab installiert und restore.zip reinkopiert - das hat geklappt!!!
## ErgÀnzung: Samba
services:
  openhab:
    image: "openhab/openhab:4.3.1"
    container_name: openhab
    depends_on:
      - mosquitto
    restart: always
    network_mode: host
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
      - data_openhab_conf:/openhab/conf
      - data_openhab_addons:/openhab/addons
      - data_openhab_userdata:/openhab/userdata
      - "./restore:/openhab/restore"
      - "./backup:/openhab/backup"
    command: "bash -c 'if [ -e /openhab/restore/restore.zip ]; then echo y |/openhab/runtime/bin/restore /openhab/restore/restore.zip ; fi; exec tini -s ./start.sh server'"
    environment:
      CRYPTO_POLICY: "unlimited"
      EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"
      OPENHAB_HTTP_PORT: "8080"
      OPENHAB_HTTPS_PORT: "8443"

  frontail:
    image: welteki/frontail-openhab:latest
    container_name: frontail
    restart: always
    ports:
      - "9001:9001"
    volumes:
      - /var/lib/docker/volumes/openhab_data_openhab_userdata/_data:/openhab/userdata:ro \

  mosquitto:
    image: eclipse-mosquitto:latest
    container_name: mosquitto
    restart: always
    volumes:
      - data_mosquitto_config:/mosquitto/config
      - data_mosquitto_data:/mosquitto/data
      - data_mosquitto_log:/mosquitto/log
    ports:
      - 1883:1883
      - 8883:8883
    environment:
      TZ: 'Europe/Berlin'
    networks:
      app-nw:
        aliases:
          - mqtt

  samba:
    image: dperson/samba
    container_name: samba
    restart: always
    ports:
      - "137:137/udp"
      - "138:138/udp"
      - "139:139/tcp"
      - "445:445/tcp"
    read_only: false
    stdin_open: true
    healthcheck:
      disable: true
    environment:
    - TZ='Europe/Berlin'
    - PUID=9001
    - PGID=9001
    - WORKGROUP=workgroup
    - PERMISSIONS=true
    - RECYCLE=false
    - SHARE1=openhab_conf;/shares/openhab_conf;yes;no;yes;all;all;all;
    - SHARE2=openhab_addons;/shares/openhab_addons;yes;no;yes;all;all;all;
    - SHARE3=openhab_userdata;/shares/openhab_userdata;yes;no;yes;all;all;all;
    - SHARE4=mosquitto_config;/shares/mosquitto_config;yes;no;yes;all;all;all;
    - SHARE5=mosquitto_log;/shares/mosquitto_log;yes;no;yes;all;all;all;
    - SHARE6=docker;/shares/docker;yes;no;yes;all;all;all;
    - SHARE7=log;/shares/log;yes;no;yes;all;all;all;
    volumes:
      - data_openhab_conf:/shares/openhab_conf
      - data_openhab_addons:/shares/openhab_addons
      - data_openhab_userdata:/shares/openhab_userdata
      - data_mosquitto_config:/shares/mosquitto_config
##    command: '-w PRIVAT -s "mosq_ro;/shares/mosquitto_config;yes;yes;no;openhabian;none;none;Mosquitto Config RO" -s "mosq_rw;/shares/mosquitto_config;yes;no;no;alice;none;none;Mosquit>      - data_mosquitto_log:/shares/mosquitto_log
      - /docker:/shares/docker
      - /var/log:/shares/log

volumes:
  data_openhab_conf:
  data_openhab_addons:
  data_openhab_userdata:
  data_mosquitto_config:
  data_mosquitto_data:
  data_mosquitto_log:

networks:
  app-nw:
    internal: false
    driver: bridge
    driver_opts:
      com.docker.network.bridge.name: app-openhab4
  backend-nw:
    internal: true
    driver: bridge
    driver_opts:
      com.docker.network.bridge.name: be-openhab4


Result:
I have rw-access to

docker
log
mosquitto_config
mosquitto_log

and only ro-access to

openhab_addons
openhab_conf
openhab_userdata

Thx. Will check in case I find some time and then maybe adjust the .yml above accordingly.