From b21a402b9f2ea0af6035e64d60b7545ac37c0059 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Tue, 13 Feb 2024 06:07:29 +0000 Subject: [PATCH] =?UTF-8?q?install-scrypted-on-docker/docker-compose.yml?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-scrypted-on-docker/docker-compose.yml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 install-scrypted-on-docker/docker-compose.yml diff --git a/install-scrypted-on-docker/docker-compose.yml b/install-scrypted-on-docker/docker-compose.yml new file mode 100644 index 0000000..bb2f44e --- /dev/null +++ b/install-scrypted-on-docker/docker-compose.yml @@ -0,0 +1,55 @@ +version: "3.5" + +# Example volumes SMB (CIFS) and NFS. +# Uncomment only one. + +services: + scrypted: + image: koush/scrypted + environment: + - SCRYPTED_WEBHOOK_UPDATE_AUTHORIZATION=Bearer SET_THIS_TO_SOME_RANDOM_TEXT + - SCRYPTED_WEBHOOK_UPDATE=http://localhost:10444/v1/update + # nvidia support + # - NVIDIA_VISIBLE_DEVICES=all + # - NVIDIA_DRIVER_CAPABILITIES=all + # runtime: nvidia + container_name: scrypted + restart: unless-stopped + network_mode: host + + volumes: + - /data/scrypted/_data:/server/volume + + # logging is noisy and will unnecessarily wear on flash storage. + # scrypted has per device in memory logging that is preferred. + logging: + driver: "json-file" + options: + max-size: "10m" + max-file: "10" + + labels: + - "com.centurylinklabs.watchtower.scope=scrypted" + + # watchtower manages updates for Scrypted. + watchtower: + environment: + - WATCHTOWER_HTTP_API_TOKEN=SET_THIS_TO_SOME_RANDOM_TEXT + - WATCHTOWER_HTTP_API_UPDATE=true + - WATCHTOWER_SCOPE=scrypted + # remove the following line to never allow docker to auto update. + # this is not recommended. + - WATCHTOWER_HTTP_API_PERIODIC_POLLS=true + image: containrrr/watchtower + container_name: scrypted-watchtower + restart: unless-stopped + volumes: + - /var/run/docker.sock:/var/run/docker.sock + labels: + - "com.centurylinklabs.watchtower.scope=scrypted" + ports: + # The auto update port 10444 can be configured + # Must match the port in the auto update url above. + - 10444:8080 + # check for updates once an hour (interval is in seconds) + command: --interval 3600 --cleanup --scope scrypted \ No newline at end of file