Sign inSign up

perhu/z-way-server

By perhu

Updated over 4 years ago

Image
0

1.9K

perhu/z-way-server repository overview

Z-Way server packed in a Ubuntu environment.

Update: 3.2.2 image has also applied the patch for HASS integration: https://github.com/Z-Wave-Me/home-automation/commit/cc62fa25406f096a23d9f06afb0d977eb88752dc

Docker Compose example:

version: "3.9"
services:
  Z-Way:
    container_name: Z-Way #or what you want to call it
    restart: always
    image: perhu/z-way-server:#Tag#
    networks:
      HAnett:  #or whatever you internal docker network is called
        ipv4_address: 192.168.0.2  #this volume gets this IP in the internal network
    ports:
      - "8083:8083" #UI port
    volumes: 
      - type: bind    #timezone sync
        source: /etc/localtime
        target: /etc/localtime
      - type: volume
        source: Z-Way-zddx #Device info storage (i think)
        target: /opt/z-way-server/config/zddx
      - type: volume
        source: Z-Way-storage #application settings
        target: /opt/z-way-server/automation/storage
    devices:
      - "/dev/serial/by-id/usb-0658_0200-if00:/dev/serial/by-id/usb-0658_0200-if00" #your device here
    environment:
      - ZWAY_VERSION=#version#
    logging:
        driver: "json-file"
        options:
            max-file: "5"
            max-size: 10m   
networks:					#I set up a network for the dockers to communicate, with static IPs
    HAnett:
        name: HAnett
        driver: bridge
        ipam:
            config:
                - subnet: 192.168.0.0/16 #subnet of choice
volumes:
  Z-Way-zddx:
    name: Z-Way-zddx
  Z-Way-storage:
    name: Z-Way-storage

Dockerfile:

#name of container: perhu/z-way-server-3-2-2
#version of container: 0.3.0
FROM ubuntu:20.04
LABEL MAINTAINER perhu
ENV TZ=Europe/Oslo

#add repository and update the container
#Installation of nesesary package/software for this containers... (added nano to apply patch for HASS)
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q wget \
										  libarchive13 \
										  libxml2 \
										  sharutils \
										  tzdata \
										  gawk \
										  libc-ares2 \
										  libavahi-compat-libdnssd-dev \
										  libwebsockets15 \
										  libcurl4 \
										  libmosquitto1 \
										  nano \
										  && apt --fix-broken install && wget https://storage.z-wave.me/z-way-server/z-way-3.2.2_amd64.deb && dpkg -i z-way-*$
ADD /Pzway /opt/z-way-server/automation
CMD ["/bin/bash"]

ENV LD_LIBRARY_PATH=/opt/z-way-server/libs
ENV PATH=/opt/z-way-server:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

VOLUME ["/opt/z-way-server/config/zddx/"]
VOLUME ["/opt/z-way-server/automation/storage"]

# to allow access from outside of the container  to the container service
# at that ports need to allow access from firewall if need to access it outside of the server.
EXPOSE 8083

WORKDIR /opt/z-way-server

# Use baseimage-docker's init system.
CMD ["z-way-server"]

Tag summary

Content type

Image

Digest

Size

139.2 MB

Last updated

over 4 years ago

docker pull perhu/z-way-server:3.2.3