From 118159e2a16c34c5dae05cc7b5e4e2d8c7ff4aa2 Mon Sep 17 00:00:00 2001 From: Adrien Poupa Date: Fri, 10 Nov 2023 12:09:38 -0500 Subject: [PATCH] doc: add Using the VPN for *arr apps section --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index ccc230c..aecaa55 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ I am running it in Ubuntu Server 22.04; I also tested this setup on a [Synology * [DHCP](#dhcp) * [Expose DNS Server with Tailscale](#expose-dns-server-with-tailscale) * [Customization](#customization) + * [Optional: Using the VPN for *arr apps](#optional-using-the-vpn-for-arr-apps) * [Synology Quirks](#synology-quirks) * [Free Ports 80 and 443](#free-ports-80-and-443) * [Install Synology WireGuard](#install-synology-wireguard) @@ -372,6 +373,21 @@ services: - NETWORK=192.168.1.0/24 # So it can be accessed within the local network ``` +### Optional: Using the VPN for *arr apps + +If you want to use the VPN for Prowlarr and other *arr applications, add the following block to all the desired containers: +```yml + network_mode: "service:vpn" + depends_on: + vpn: + condition: service_healthy +``` + +Change the healthcheck to mark the containers as unhealthy when internet connection is not working by appending a URL +to the healthcheck, eg: `test: [ "CMD", "curl", "--fail", "http://127.0.0.1:7878/radarr/ping", "https://google.com" ]` + +Then in Prowlarr, use `localhost` rather than `vpn` as the hostname, since they are on the same network. + ## Synology Quirks Docker compose NAS can run on DSM 7.1, with a few extra steps.