Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Latest commit

 

History

History
71 lines (57 loc) · 2.16 KB

README.md

File metadata and controls

71 lines (57 loc) · 2.16 KB

dockerized-z-way

Run Z-Way as a Docker container.


Start Z-Way with docker compose:

  version: "3"

  services:
     z-way:
        container_name: z-way
        build: https://github.com/SENERGY-Platform/dockerized-z-way.git
        image: z-way
        expose:
           - 8083
        ports:
           - 8083:8083
        volumes:
           - z-way-config:/opt/z-way-server/config
           - z-way-automation-storage:/opt/z-way-server/automation/storage
           - z-way-htdocs-smarthome-user:/opt/z-way-server/htdocs/smarthome/user
           - z-way-zddx:/opt/z-way-server/ZDDX
        devices:
           - '/dev/ttyAMA0:/dev/ttyAMA0'
        restart: unless-stopped

  volumes:
     z-way-config:
     z-way-automation-storage:
     z-way-htdocs-smarthome-user:
     z-way-zddx:

Backup and restore Z-Way with docker compose:

  version: "3"

  services:
     z-way-backup:
        container_name: z-way-backup
        build: https://github.com/SENERGY-Platform/dockerized-z-way.git#:backup
        image: z-way-backup:latest
        volumes:
           - z-way-config:/opt/z-way-server/config
           - z-way-automation-storage:/opt/z-way-server/automation/storage
           - z-way-htdocs-smarthome-user:/opt/z-way-server/htdocs/smarthome/user
           - z-way-zddx:/opt/z-way-server/ZDDX
           - ./z-way-backup:/opt/z-way-backup

     z-way-restore:
        container_name: z-way-restore
        build: https://github.com/SENERGY-Platform/dockerized-z-way.git#:restore
        image: z-way-restore:latest
        volumes:
           - z-way-config:/opt/z-way-server/config
           - z-way-automation-storage:/opt/z-way-server/automation/storage
           - z-way-htdocs-smarthome-user:/opt/z-way-server/htdocs/smarthome/user
           - z-way-zddx:/opt/z-way-server/ZDDX
           - ./z-way-backup:/opt/z-way-backup

  volumes:
     z-way-config:
     z-way-automation-storage:
     z-way-htdocs-smarthome-user:
     z-way-zddx: