This commit is contained in:
ari committed 2025-08-03 18:17:46 -04:00
1 parent d82d1e58e5
commit 0d41ee3969
2 files changed
+184 -2

No files matched your search

+165
View File
@@ -0,0 +1,165 @@
version: "3.8"
services:
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
restart: unless-stopped
database:
image: postgres:17
restart: unless-stopped
volumes:
db: /var/lib/postgresql/data
ports:
- port: '5432'
healthcheck:
test:
- pg_isready
- --username=postgres
interval: 30s
timeout: 5s
start_period: 10s
prowlarr:
image: lscr.io/linuxserver/prowlarr
restart: unless-stopped
environment:
PUID: "1000"
PGID: "100"
volumes:
prowlarr: /config
torrents: /torrents
serviceType: LoadBalancer
serviceAnnotations:
"metallb.universe.tf/loadBalancerIPs" : "10.0.100.4"
"metallb.io/ip-allocated-from-pool" : "homelab-pool"
healthcheck:
test:
- curl
- -f
- http://localhost/prowlarr/ping
interval: 30s
timeout: 5s
start_period: 10s
labels:
- homepage.group=Torrent
- homepage.name=Prowlarr
- homepage.icon=/prowlarr/Content/Images/logo.png
- homepage.href=/prowlarr/
depends_on:
- database
- radarr
- sonarr
lidarr:
image: lscr.io/linuxserver/lidarr
restart: unless-stopped
ports:
- port: '80'
environment:
PUID: "1000"
PGID: "100"
volumes:
lidarr: /config
torrents: /torrents
labels:
- homepage.group=Torrent
- homepage.name=lidarr
- homepage.icon=/lidarr/Content/Images/logo.png
- homepage.href=/lidarr/
depends_on:
- database
healthcheck:
test:
- curl
- -f
- http://localhost/lidarr/ping
interval: 30s
timeout: 5s
start_period: 10s
serviceType: LoadBalancer
serviceAnnotations:
"metallb.universe.tf/loadBalancerIPs" : "10.0.100.5"
"metallb.io/ip-allocated-from-pool" : "homelab-pool"
radarr:
image: lscr.io/linuxserver/radarr
restart: unless-stopped
environment:
PUID: "1000"
PGID: "100"
ports:
- port: '80'
volumes:
radarr: /config
torrents: /torrents
labels:
- homepage.group=Torrent
- homepage.name=Radarr
- homepage.icon=/radarr/Content/Images/logo.png
- homepage.href=/radarr/
depends_on:
- database
healthcheck:
test:
- curl
- -f
- http://localhost/radarr/ping
interval: 30s
timeout: 5s
start_period: 10s
serviceType: LoadBalancer
serviceAnnotations:
"metallb.universe.tf/loadBalancerIPs" : "10.0.100.6"
"metallb.io/ip-allocated-from-pool" : "homelab-pool"
sonarr:
image: lscr.io/linuxserver/sonarr
restart: unless-stopped
environment:
PUID: "1000"
PGID: "100"
volumes:
sonarr: /config
torrents: /torrents
ports:
- port: '80'
depends_on:
- database
labels:
- homepage.group=Torrent
- homepage.name=Sonarr
- homepage.icon=/sonarr/Content/Images/logo.svg
- homepage.href=/sonarr/
healthcheck:
test:
- curl
- -f
- http://localhost/sonarr/ping
interval: 30s
timeout: 5s
start_period: 10s
serviceType: LoadBalancer
serviceAnnotations:
"metallb.universe.tf/loadBalancerIPs" : "10.0.100.7"
"metallb.io/ip-allocated-from-pool" : "homelab-pool"
volumes:
db:
type: nfs
server: tnas1.lab.internal
path: /mnt/Data/apps/arrs/data/database
torrents:
type: nfs
server: tnas1.lab.internal
path: /mnt/EightTerra/DownloadedTorrents
prowlarr:
type: nfs
server: terra1.lab.internal
path: /mnt/Data/apps/arrs/configs/prowlarr
sonarr:
type: nfs
server: terra1.lab.internal
path: /mnt/Data/apps/arrs/configs/sonarr
radarr:
type: nfs
server: terra1.lab.internal
path: /mnt/Data/apps/arrs/configs/radarr
lidarr:
type: nfs
server: terra1.lab.internal
path: /mnt/Data/apps/arrs/configs/lidarr
+19 -2
View File
@@ -5,6 +5,13 @@ apiVersion: apps/v1
metadata:
name: {{ $name }}
namespace: {{ $.Release.Namespace | quote }}
annotations:
{{- if $data.labels }}
{{ range $i, $val := $data.labels }}
{{- $parts := splitList "=" $val -}}
"{{ index $parts 0 }}": "{{ index $parts 1 }}"
{{ end }}
{{- end }}
spec:
replicas: {{ $data.replicas | default 1 }}
selector:
@@ -60,6 +67,16 @@ spec:
- {{ $cmd | quote }}
{{ end }}
{{ end }}
{{ if $data.healthcheck }}
livenessProbe:
exec:
command:
{{ $data.healthcheck.test | toYaml | nindent 32 }}
initialDelaySeconds: {{ $data.healthcheck.start_period | default 3 }}
periodSeconds: {{ $data.healthcheck.interval | default 30 }}
timeoutSeconds: {{ $data.healthcheck.timeout | default 5 }}
{{ end }}
---
kind: Service
apiVersion: v1
@@ -67,8 +84,8 @@ metadata:
name: {{ $name }}
namespace: {{ $.Release.Namespace | quote }}
annotations:
{{- if $data.annotations }}
{{ $data.annotations | toYaml | nindent 4 }}
{{- if $data.serviceAnnotations }}
{{ $data.serviceAnnotations | toYaml | nindent 4 }}
{{- end }}
spec:
selector: