migrate bazarr to kubernetes
This commit is contained in:
parent
81eacbcfcb
commit
2853895822
6 changed files with 115 additions and 87 deletions
|
@ -4,4 +4,3 @@
|
|||
roles:
|
||||
- {role: traefik, tags: traefik}
|
||||
- {role: swarm_dashboard, tags: swarm_dashboard}
|
||||
- {role: media, tags: media}
|
||||
|
|
|
@ -1,80 +0,0 @@
|
|||
# vi: ft=yaml
|
||||
version: '3.5'
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
media:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/media"
|
||||
jellyfin_config:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/jellyfin/config"
|
||||
transmission_config:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/transmission/config"
|
||||
jellyseerr_config:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/jellyseerr/config"
|
||||
radarr_config:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/radarr/config"
|
||||
sonarr_config:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/sonarr/config"
|
||||
prowlarr_config:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/prowlarr/config"
|
||||
bazarr_config:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=lewis.dmz,nolock,soft,rw"
|
||||
device: ":/mnt/data/nfs/bazarr/config"
|
||||
jellyfin_cache:
|
||||
|
||||
services:
|
||||
bazarr:
|
||||
image: lscr.io/linuxserver/bazarr:latest
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Amsterdam
|
||||
volumes:
|
||||
- type: volume
|
||||
source: bazarr_config
|
||||
target: /config
|
||||
volume:
|
||||
nocopy: true
|
||||
- type: volume
|
||||
source: media
|
||||
target: /media
|
||||
volume:
|
||||
nocopy: true
|
||||
networks:
|
||||
- traefik
|
||||
deploy:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.bazarr.entrypoints=localsecure
|
||||
- traefik.http.routers.bazarr.rule=Host(`bazarr.kun.is`)
|
||||
- traefik.http.routers.bazarr.tls=true
|
||||
- traefik.http.routers.bazarr.tls.certresolver=letsencrypt
|
||||
- traefik.http.routers.bazarr.service=bazarr
|
||||
- traefik.http.services.bazarr.loadbalancer.server.port=6767
|
||||
- traefik.docker.network=traefik
|
|
@ -1,5 +0,0 @@
|
|||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: media
|
||||
compose:
|
||||
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
|
|
@ -1 +0,0 @@
|
|||
bittorrent_port: 31780
|
|
@ -156,6 +156,12 @@ services:
|
|||
- traefik.http.routers.sonarr.rule=Host(`sonarr.kun.is`)
|
||||
- traefik.http.routers.sonarr.tls=true
|
||||
- traefik.http.routers.sonarr.tls.certresolver=letsencrypt
|
||||
|
||||
- traefik.http.routers.bazarr.entrypoints=localsecure
|
||||
- traefik.http.routers.bazarr.service=k3s@file
|
||||
- traefik.http.routers.bazarr.rule=Host(`bazarr.kun.is`)
|
||||
- traefik.http.routers.bazarr.tls=true
|
||||
- traefik.http.routers.bazarr.tls.certresolver=letsencrypt
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /var/run/docker.sock
|
||||
|
|
Reference in a new issue