From 8a5fd8182f54677bbad2e84e3ba32063e732cf7d Mon Sep 17 00:00:00 2001 From: Mr <37304121+IRHM@users.noreply.github.com> Date: Wed, 6 Mar 2024 22:31:47 +0000 Subject: [PATCH] Add `restart` property to docker-compose example (#398) * #390 and update docker-compose file in proj root to match one in docs * docker-compose.yml: fix port i changed this :( --- .gitignore | 1 + doc/docs/installation/docker-compose.md | 1 + docker-compose.yml | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 297f805f..6a5a914b 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ vite.config.ts.timestamp-* # Docker dev volume container_data/ +data/ # Build artifacts server/ui diff --git a/doc/docs/installation/docker-compose.md b/doc/docs/installation/docker-compose.md index ff094e31..2cbd478f 100644 --- a/doc/docs/installation/docker-compose.md +++ b/doc/docs/installation/docker-compose.md @@ -22,6 +22,7 @@ services: volumes: # Contains all of watcharr data (database & cache) - ./data:/data + restart: unless-stopped ``` :::danger first account diff --git a/docker-compose.yml b/docker-compose.yml index 25373445..1ba4b0e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,13 @@ version: "3" services: watcharr: + # The :latest tag is used for simplicity, it is recommended + # to use an actual version, then when updating check the releases for changelogs. image: ghcr.io/sbondco/watcharr:latest container_name: watcharr ports: - 3080:3080 volumes: - - ./container_data:/data + # Contains all of watcharr data (database & cache) + - ./data:/data + restart: unless-stopped