From 9ac64eb8e98c0a5dced60855d2d195088dcefc88 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 18 Oct 2021 17:35:02 -0700 Subject: [PATCH 1/3] Update DOCKER.md --- DOCKER.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DOCKER.md b/DOCKER.md index 0db63b33e..a79c501bd 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -6,7 +6,9 @@ Docker images are published on [Docker Hub](https://hub.docker.com/repository/re # pull the image docker pull koush/scrypted # run the image, saving the database and configuration files in a subdirectory named "scrypted" -docker run --network host -v $(pwd)/scrypted:/server/volume koush/scrypted +docker run --network host \ + -d --restart unless-stopped \ + -v $(pwd)/scrypted:/server/volume koush/scrypted ``` ## Docker Compose From 8b877d352e294922100442e74ad9f43f2b68956e Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 18 Oct 2021 17:35:36 -0700 Subject: [PATCH 2/3] Delete DOCKER.md --- DOCKER.md | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 DOCKER.md diff --git a/DOCKER.md b/DOCKER.md deleted file mode 100644 index a79c501bd..000000000 --- a/DOCKER.md +++ /dev/null @@ -1,50 +0,0 @@ -## Docker - -Docker images are published on [Docker Hub](https://hub.docker.com/repository/registry-1.docker.io/koush/scrypted/tags?page=1&ordering=last_updated). The images will not work properly on [Mac](https://github.com/docker/for-mac/issues/68) or [Windows](https://github.com/docker/for-win/issues/543), because the `--network host` option does not work for those platforms. - -```sh -# pull the image -docker pull koush/scrypted -# run the image, saving the database and configuration files in a subdirectory named "scrypted" -docker run --network host \ - -d --restart unless-stopped \ - -v $(pwd)/scrypted:/server/volume koush/scrypted -``` - -## Docker Compose - -```yaml -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 - -```yaml -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 -``` From adc59d4603da5021212df7f868de62d8594b7c81 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 18 Oct 2021 17:36:14 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b3a0e522e..a56332dd1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Supported accessories: ## Run on Docker -[Instructions](DOCKER.md) +[Instructions](https://github.com/koush/scrypted/wiki/Docker) ## Run Locally