ZwavejsUI , where are the files on the host ?

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
solarboy
Posts: 345
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

ZwavejsUI , where are the files on the host ?

Post by solarboy »

I would like to automatically backup my zwave-js-UI "store" files but I can only access them from inside the container/webUI.

With Zigbee2mqtt my files are all available in /home/pi/zigbee2mqtt alongside my docker-compose file in a directory called "data" and I am easily able to back these files up.

With zwave-js-UI no such folder is created as far as I know.

This is my docker compose file, nothing is created in /usr/src either.

Is there something I should do to enable access to these files in the host or am I not looking in the right place ?

Code: Select all

version: '3.7'
services:
  zwave-js-ui:
    container_name: zwave-js-ui
    image: zwavejs/zwave-js-ui:latest
    restart: always
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mysupersecretkey
      - ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db
      # Uncomment if you want logs time and dates to match your timezone instead of UTC
      # Available at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
      - TZ=Europe/Lisbon
    networks:
      - zwave
    devices:
      # Do not use /dev/ttyUSBX serial devices, as those mappings can change over time.
      # Instead, use the /dev/serial/by-id/X serial device for your Z-Wave stick.
      - '/dev/serial/by-id/usb-0658_0200-if00'
      
      #- '/dev/serial/by-id/insert_stick_reference_here:/dev/zwave'
    volumes:
      - zwave-config:/usr/src/app/store
    ports:
      - '8091:8091' # port for web interface
      - '3000:3000' # port for Z-Wave JS websocket server
networks:
  zwave:
volumes:
  zwave-config:
    name: zwave-config
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
ksacca
Posts: 80
Joined: Thursday 31 May 2018 21:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ZwavejsUI , where are the files on the host ?

Post by ksacca »

edit: I was too fast to reply, so I corrected the original post. You are currently using a volume managed by docker. You should use a bind mount.
You should be able to mount to a folder by modifying your config as show in the example below.

Code: Select all

    volumes:
      - /home/pi/zwavejsui/:/usr/src/app/store
solarboy
Posts: 345
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: ZwavejsUI , where are the files on the host ?

Post by solarboy »

Thank you so much, that did it. In the end I used;

Code: Select all

- ./store:/usr/src/app/store
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest