summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gallet2024-04-20 23:33:48 +0200
committerRomain Gallet2024-04-20 23:33:48 +0200
commitfe0d60b763bf6c30e73b3584e4e5bdf3c8c9acba (patch)
treed9028c7ef1a69faa98b886e6f26b69dd518dc17e
parentc602afef3669873134a42110f5e5d034ea9ec9db (diff)
downloadaur-fe0d60b763bf6c30e73b3584e4e5bdf3c8c9acba.tar.gz
Change to 1d
-rw-r--r--Readme.md25
-rw-r--r--sabnzbd-docker-update.timer2
2 files changed, 13 insertions, 14 deletions
diff --git a/Readme.md b/Readme.md
index d33ae49ff9fb..a0aaa450c9fb 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,15 +1,14 @@
Sabnzbd-docker
==============
-`sabnzbd-docker` is a service unit that starts `sabnzbd`, `nzbhydra2` and `sonarr` in their respective docker
-containers.
+`sabnzbd-docker` is a service unit that starts `sabnzbd`, `nzbhydra2` and `sonarr` in their respective docker containers.
The services are provided as-is by linuxserver.io, direct from docker hub:
* [sabnzbd](https://hub.docker.com/r/linuxserver/sabnzbd)
* [nzbhydra2](https://hub.docker.com/r/linuxserver/nzbhydra2)
* [sonarr](https://hub.docker.com/r/linuxserver/sonarr)
-This package is ArchLinux centric, but it should work on any system that uses `systemd` and `docker`.
+This package is Arch Linux centric, but it should work on any system that uses `systemd` and `docker`.
An [Aur package](https://aur.archlinux.org/packages/sabnzbd-docker) is provided for easy installation.
@@ -17,11 +16,13 @@ An [Aur package](https://aur.archlinux.org/packages/sabnzbd-docker) is provided
1. Create a user config file at `~/.docker-sabnzbd.env` with the following content:
- # you may choose different paths for each service
+ These directories represent the paths _on the host_ where config files, logs, et al. for each service will go. They will be bound to the docker instances of each service.
- SABNZBD_PATH_PREFIX = /path/to/prefix
- NZBHYDRA2_PATH_PREFIX = /path/to/prefix
- SONARR_PATH_PREFIX = /path/to/prefix
+ `docker-compose.yaml` has a few other directories and paths you can set for further customisation. You only need to set up corresponding the `*_PREFIX` paths for services you intend to use.
+
+ SABNZBD_PATH_PREFIX = /path/to/prefix
+ NZBHYDRA2_PATH_PREFIX = /path/to/prefix
+ SONARR_PATH_PREFIX = /path/to/prefix
<details>
For example, you can run it with something like:
@@ -52,7 +53,7 @@ An [Aur package](https://aur.archlinux.org/packages/sabnzbd-docker) is provided
mkdir -p /path/to/prefix/sonarr/tv # /tv
mkdir -p /path/to/prefix/sonarr/downloads # /downloads
-3. _Optional._ Defines the services to start in the same user config file:
+3. _Optional._ Defines the services to start, also in `~/.docker-sabnzbd.env`:
COMPOSE_PROFILES=sabnzbd,nzbhydra2,sonarr # default is 'all'
@@ -65,17 +66,15 @@ An [Aur package](https://aur.archlinux.org/packages/sabnzbd-docker) is provided
## Installation
makepkg
-
pacman -U sabnzbd-docker-x.y-z-x86_64.pkg.tar.zst
+or get it from the [Aur](https://aur.archlinux.org/packages/sabnzbd-docker) repository.
## Usage
# Optional. sabnzbd-docker-update.timer pull new updates from docker hub each day
- systemctl --user start sabnzbd-docker-update.timer
- systemctl --user enable sabnzbd-docker-update.timer
+ systemctl --user --now enable sabnzbd-docker-update.timer
- systemctl --user start sabnzbd-docker
- systemctl --user enable sabnzbd-docker
+ systemctl --user --now enable sabnzbd-docker
Navigate to [http://localhost:8080](http://localhost:8080) to access `sabnzbd`.
diff --git a/sabnzbd-docker-update.timer b/sabnzbd-docker-update.timer
index 000fc11b422a..57ecca224680 100644
--- a/sabnzbd-docker-update.timer
+++ b/sabnzbd-docker-update.timer
@@ -4,7 +4,7 @@ After=docker.service
[Timer]
OnBootSec=15min
-OnUnitActiveSec=1w
+OnUnitActiveSec=1d
[Install]
WantedBy=timers.target