roles: Make domain global variable

Each role has their own subdomains which can be set manually, or can
inherit from the global domain with a default prefix.
This commit is contained in:
Marty Oehme 2025-07-17 16:16:02 +02:00
parent 812deeb12d
commit e32f2366c8
Signed by: Marty
GPG key ID: 4E535BC19C61886E
7 changed files with 32 additions and 15 deletions

View file

@ -1,6 +1,19 @@
---
# inherited from global
arrstack_sonarr_subdomain: "sonarr.{{ domain | default('example.org') }}"
arrstack_radarr_subdomain: "radarr.{{ domain | default('example.org') }}"
arrstack_lidarr_subdomain: "lidarr.{{ domain | default('example.org') }}"
arrstack_readarr_subdomain: "readarr.{{ domain | default('example.org') }}"
arrstack_prowlarr_subdomain: "prowlarr.{{ domain | default('example.org') }}"
arrstack_beets_subdomain: "beets.{{ domain | default('example.org') }}"
arrstack_sabnzbd_subdomain: "usenet.{{ domain | default('example.org') }}"
arrstack_qbit_subdomain: "torrent.{{ domain | default('example.org') }}"
arrstack_jellyseerr_subdomain: "get.{{ domain | default('example.org') }}"
arrstack_jellyfin_subdomain: "media.{{ domain | default('example.org') }}"
arrstack_audiobookshelf_subdomain: "books.{{ domain | default('example.org') }}"
arrstack_gonic_subdomain: "music.{{ domain | default('example.org') }}"
arrstack_homarr_subdomain: "{{ domain | default('example.org') }}"
arrstack_tz: "{{ timezone | default('America/Chicago') }}"
arrstack_puid: "{{ puid | default(1000) }}"
arrstack_pgid: "{{ pgid | default(100) }}"

View file

@ -16,7 +16,7 @@ services:
- "{{ arrstack_serve_dir }}/files/torrent:/data/torrent"
restart: unless-stopped
labels:
caddy: "http://sonarr.pichi.berlin"
caddy: "{{ arrstack_sonarr_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8989{{ '}}'}}"
radarr:
@ -36,7 +36,7 @@ services:
- "{{ arrstack_serve_dir }}/files/torrent:/data/torrent"
restart: unless-stopped
labels:
caddy: "http://radarr.pichi.berlin"
caddy: "{{ arrstack_radarr_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 7878{{ '}}'}}"
lidarr:
@ -61,7 +61,7 @@ services:
- "{{ arrstack_serve_dir }}/files/torrent:/data/torrent"
restart: unless-stopped
labels:
caddy: "http://lidarr.pichi.berlin"
caddy: "{{ arrstack_lidarr_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8686{{ '}}'}}"
readarr:
@ -81,7 +81,7 @@ services:
- "{{ arrstack_serve_dir }}/files/torrent:/data/torrent"
restart: unless-stopped
labels:
caddy: "http://readarr.pichi.berlin"
caddy: "{{ arrstack_readarr_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8787{{ '}}'}}"
prowlarr:
@ -98,7 +98,7 @@ services:
- "{{ arrstack_env_dir }}/config/prowlarr:/config"
restart: unless-stopped
labels:
caddy: "http://prowlarr.pichi.berlin"
caddy: "{{ arrstack_prowlarr_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 9696{{ '}}'}}"
beets:
@ -119,7 +119,7 @@ services:
- "{{ arrstack_serve_dir }}/files/music-unsorted:/downloads"
restart: unless-stopped
labels:
caddy: "http://prowlarr.pichi.berlin"
caddy: "{{ arrstack_beets_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8337{{ '}}'}}"
sabnzbd:
@ -137,7 +137,7 @@ services:
- "{{ arrstack_serve_dir }}/files/usenet:/data/usenet:rw"
restart: unless-stopped
labels:
caddy: "http://usenet.pichi.berlin"
caddy: "{{ arrstack_sabnzbd_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8080{{ '}}'}}"
vpn:
@ -172,7 +172,7 @@ services:
# - 8000:8000 # gluetun http control
restart: unless-stopped
labels:
caddy: "http://torrent.pichi.berlin"
caddy: "{{ arrstack_qbit_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8888{{ '}}'}}"
qbittorrent:
image: linuxserver/qbittorrent
@ -241,7 +241,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
restart: unless-stopped
labels:
caddy: "http://pichi.berlin"
caddy: "{{ arrstack_homarr_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 7575{{ '}}'}}"
jellyseerr:
@ -258,7 +258,7 @@ services:
- "{{ arrstack_env_dir }}/config/jellyseerr:/app/config"
restart: unless-stopped
labels:
caddy: "http://get.pichi.berlin"
caddy: "{{ arrstack_jellyseerr_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 5055{{ '}}'}}"
audiobookshelf:
@ -278,7 +278,7 @@ services:
# - "{{ arrstack_serve_dir }}/media/podcasts:/podcasts" # TODO: If integrating podcasts
restart: unless-stopped
labels:
caddy: "http://books.pichi.berlin"
caddy: "{{ arrstack_audiobookshelf_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}'}}"
jellyfin:
@ -306,7 +306,7 @@ services:
- 1900:1900/udp #optional - dlna discovery
restart: unless-stopped
labels:
caddy: "http://media.pichi.berlin"
caddy: "{{ arrstack_jellyfin_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8096{{ '}}'}}"
gonic:
@ -325,7 +325,7 @@ services:
- "/srv/media/podcasts:/podcasts"
#- /path/to/cache:/cache # transcode / covers / etc cache dir
labels:
caddy: "http://music.pichi.berlin"
caddy: "{{ arrstack_gonic_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}'}}"

View file

@ -1,5 +1,6 @@
---
# inherited from global
stack_grocy_subdomain: "house.{{ domain | default('example.org') }}"
stack_grocy_tz: "{{ timezone | default('America/Chicago') }}"
stack_grocy_puid: "{{ puid | default(1000) }}"
stack_grocy_pgid: "{{ pgid | default(100) }}"

View file

@ -13,7 +13,7 @@ services:
- "{{ arrstack_env_dir }}/config/grocy:/config"
restart: unless-stopped
labels:
caddy: "http://house.pichi.berlin"
caddy: "{{ stack_grocy_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}'}}"
networks:

View file

@ -1,6 +1,7 @@
---
# inherited from global
stack_paperless_subdomain: "documents.{{ domain | default('example.org') }}"
stack_paperless_tz: "{{ timezone | default('America/Chicago') }}"
stack_paperless_puid: "{{ puid | default(1000) }}"
stack_paperless_pgid: "{{ pgid | default(100) }}"

View file

@ -34,7 +34,7 @@ services:
- "PAPERLESS_ADMIN_USER={{ stack_paperless_admin_user }}"
- "PAPERLESS_ADMIN_PASSWORD={{ stack_paperless_admin_password }}"
labels:
caddy: "http://documents.pichi.berlin"
caddy: "{{ stack_paperless_subdomain }}"
caddy.reverse_proxy: "{{ '{{' }}upstreams 8000{{ '}}'}}"
paperless-postgres: