burmjohn / zwave-js-server-docker

Minimal docker container for zwave-js-server

Home Page:https://registry.hub.docker.com/r/kpine/zwave-js-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zwave-js-server-docker

A minimal docker container for zwave-js-server.

Sample docker-compose.yaml:

version: '3.8'

services:

  zjs:
    container_name: zjs
    image: kpine/zwave-js-server:latest
    restart: unless-stopped
    environment:
      NETWORK_KEY: "17DFB0C1BED4CABFF54E4B5375E257B3"
      LOGTOFILE: "true"
      TZ: "America/Los_Angeles"
    devices:
      - '/dev/serial/by-id/usb-0658_0200-if00:/dev/zwave'
    volumes:
      - ./cache:/cache
      - ./logs:/logs
    ports:
      - '3000:3000'

Environment variables:

  • NETWORK_KEY: The Z-Wave network key in hex string (0-9A-F) format. Must be exactly 32 hex characters and is a required value.
  • LOGTOFILE: Set to true to configure node-zwave-js to log to a file. Optional, and the default is the node-zwave-js default.
  • LOGFILENAME: Set to configure the node-zwave-js logfile (when LOGTOFILE is true). The default is /logs/zwave.log. This is only relevant if LOGTOFILE is true.
  • LOGLEVEL: Set to configure the node-zwave-js loglevel. Optionals, and the default is the node-zwave-js default.

Volumes:

  • /cache - The default volume where the node-zwave-js cache files are stored.
  • /logs - The default volume where the node-zwave-js log file is stored.

Ports:

  • 3000 - The default port that is exposed for the websocket connection.

A simple way to generate a network key is with the following command:

$ < /dev/urandom tr -dc A-F0-9 | head -c32 ; echo
8387D66323E8209C58B0C317FD1F4251

About

Minimal docker container for zwave-js-server

https://registry.hub.docker.com/r/kpine/zwave-js-server

License:MIT License


Languages

Language:Dockerfile 62.0%Language:Shell 28.4%Language:JavaScript 9.6%