Files
scrypted/DOCKER.md
2021-09-10 20:29:06 -07:00

1.4 KiB

Docker

Docker images are published on Docker Hub. The images will not work properly on Mac or Windows, because the --network host option does not work for those platforms.

# pull the image
sudo docker pull koush/scrypted
# run the image, saving the database and configuration files in a subdirectory named "scrypted"
sudo docker run --network host -v $(pwd)/scrypted:/server/volume koush/scrypted

Docker Compose

version: '3.5'

services:
    scrypted:
        image: koush/scrypted
        container_name: scrypted
        restart: unless-stopped
        network_mode: host
        environment:
            - TZ=America/Seattle
        volumes:
            # LOCAL_STORAGE is the path on host to where the database will be written
            - LOCAL_STORAGE/scrypted:/server/volume

Docker Compose with Z-Wave USB

version: '3.5'

services:
    scrypted:
        image: koush/scrypted
        container_name: scrypted
        restart: unless-stopped
        network_mode: host
        environment:
            - TZ=America/Seattle
        devices:
            - /dev/ttyACM0
        volumes:
            # LOCAL_STORAGE is the path on host to where the database will be written
            - LOCAL_STORAGE/scrypted:/server/volume