homelab/bxl-swarm/mediaserver.stack.yaml

266 lines
7.0 KiB
YAML
Raw Normal View History

2023-01-31 17:51:00 +01:00
version: '3.7'
services:
jellyfin:
image: linuxserver/jellyfin:latest
volumes:
- /mnt/nfs/jellyfin:/config
- /mnt/movies/series:/data/tvshows
- /mnt/movies/movies:/data/movies
- /mnt/movies/musics:/data/musics
environment:
- TZ=Europe/Paris
networks:
- external
2023-02-02 17:14:14 +01:00
- internal
2023-01-31 17:51:00 +01:00
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
placement:
2023-02-03 23:48:45 +01:00
constraints:
- node.labels.HWA == true
2023-01-31 17:51:00 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.bhasher.com`)"
- "traefik.http.routers.jellyfin.entrypoints=internalsecure,externalsecure"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
- "traefik.http.routers.jellyfin.tls=true"
- "traefik.http.routers.jellyfin.tls.certresolver=http"
2023-02-03 23:48:45 +01:00
depends_on:
- system_traefik
- system_nfs
2023-01-31 17:51:00 +01:00
2023-02-02 17:14:14 +01:00
radarr:
image: lscr.io/linuxserver/radarr:latest
environment:
- TZ=Europe/Paris
volumes:
- /mnt/nfs/radarr:/config
- /mnt/movies/movies:/movies
- /mnt/movies/tmp:/downloads
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
2023-02-03 23:48:45 +01:00
placement:
constraints:
- node.labels.POWER == true
2023-02-02 17:14:14 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.radarr.rule=Host(`radarr.bhasher.com`)"
- "traefik.http.services.radarr.loadbalancer.server.port=7878"
- "traefik.http.routers.radarr.tls=true"
- "traefik.http.routers.radarr.tls.certresolver=http"
- "traefik.http.routers.radarr.entrypoints=internalsecure"
networks:
- internal
- external
- storage
2023-02-03 23:48:45 +01:00
depends_on:
- system_traefik
- system_nfs
- storage_postgres
2023-02-02 17:14:14 +01:00
sonarr:
image: lscr.io/linuxserver/sonarr:latest
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
volumes:
- /mnt/nfs/sonarr:/config
- /mnt/movies/series:/tv
- /mnt/movies/tmp:/downloads
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
2023-02-03 23:48:45 +01:00
placement:
constraints:
- node.labels.POWER == true
2023-02-02 17:14:14 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.sonarr.rule=Host(`sonarr.bhasher.com`)"
- "traefik.http.services.sonarr.loadbalancer.server.port=8989"
- "traefik.http.routers.sonarr.tls=true"
- "traefik.http.routers.sonarr.tls.certresolver=http"
- "traefik.http.routers.sonarr.entrypoints=internalsecure"
networks:
- internal
- external
2023-02-03 23:48:45 +01:00
depends_on:
- system_traefik
- system_nfs
2023-02-02 17:14:14 +01:00
lidarr:
image: lscr.io/linuxserver/lidarr:1.1.2-develop # required for postgres
2023-02-02 17:14:14 +01:00
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
volumes:
- /mnt/nfs/lidarr:/config
- /mnt/movies/musics:/music
- /mnt/movies/tmp:/downloads
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
2023-02-03 23:48:45 +01:00
placement:
constraints:
- node.labels.POWER == true
2023-02-02 17:14:14 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.lidarr.rule=Host(`lidarr.bhasher.com`)"
- "traefik.http.services.lidarr.loadbalancer.server.port=8686"
- "traefik.http.routers.lidarr.tls=true"
- "traefik.http.routers.lidarr.tls.certresolver=http"
- "traefik.http.routers.lidarr.entrypoints=internalsecure"
networks:
- internal
- external
- storage
2023-02-03 23:48:45 +01:00
depends_on:
- system_traefik
- system_nfs
- storage_postgres
2023-02-02 17:14:14 +01:00
transmission:
image: lscr.io/linuxserver/transmission:latest
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
- USER=transmission
- PASS=wo5ciQCMrQTOjx21d3jefyoN
volumes:
- /mnt/nfs/transmission:/config
- /mnt/movies/tmp:/downloads
- /mnt/movies/torrents:/watch
ports:
- 51413:51413/tcp
- 51413:51413/udp
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
2023-02-03 23:48:45 +01:00
placement:
constraints:
- node.labels.POWER == true
2023-02-02 17:14:14 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.transmission.rule=Host(`transmission.bhasher.com`)"
- "traefik.http.services.transmission.loadbalancer.server.port=9091"
- "traefik.http.routers.transmission.tls=true"
- "traefik.http.routers.transmission.tls.certresolver=http"
- "traefik.http.routers.transmission.entrypoints=internalsecure"
networks:
- internal
- external
2023-02-03 23:48:45 +01:00
depends_on:
- system_nfs
2023-02-02 17:14:14 +01:00
jackett:
image: lscr.io/linuxserver/jackett:latest
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
- AUTO_UPDATE=true
volumes:
- /mnt/nfs/jackett:/config
- /mnt/movies/torrents:/downloads
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
2023-02-03 23:48:45 +01:00
placement:
constraints:
- node.labels.POWER == true
2023-02-02 17:14:14 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.jackett.rule=Host(`jackett.bhasher.com`)"
- "traefik.http.services.jackett.loadbalancer.server.port=9117"
- "traefik.http.routers.jackett.tls=true"
- "traefik.http.routers.jackett.tls.certresolver=http"
- "traefik.http.routers.jackett.entrypoints=internalsecure"
networks:
- internal
- external
2023-02-03 23:48:45 +01:00
depends_on:
- system_traefik
- system_nfs
2023-02-02 17:14:14 +01:00
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
environment:
- LOG_LEVEL=info
- LOG_HTML=false
- CAPTCHA_SOLVER=none
- TZ=Europe/Paris
networks:
- internal
2023-02-03 23:48:45 +01:00
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
placement:
constraints:
- node.labels.POWER == true
2023-02-02 17:14:14 +01:00
bazarr:
image: lscr.io/linuxserver/bazarr:1.1.5-development # required for postgres
2023-02-02 17:14:14 +01:00
environment:
- TZ=Europe/Paris
volumes:
- /mnt/nfs/bazarr:/config
- /mnt/movies/movies:/movies
- /mnt/movies/series:/tv
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
2023-02-03 23:48:45 +01:00
placement:
constraints:
- node.labels.POWER == true
2023-02-02 17:14:14 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.bazarr.rule=Host(`bazarr.bhasher.com`)"
- "traefik.http.services.bazarr.loadbalancer.server.port=6767"
- "traefik.http.routers.bazarr.tls=true"
- "traefik.http.routers.bazarr.tls.certresolver=http"
- "traefik.http.routers.bazarr.entrypoints=internalsecure"
networks:
- external
- internal
- storage
2023-02-03 23:48:45 +01:00
depends_on:
- system_traefik
- system_nfs
- storage_postgres
2023-02-02 17:14:14 +01:00
2023-01-31 17:51:00 +01:00
networks:
2023-02-02 17:14:14 +01:00
internal:
storage:
external: true
2023-01-31 17:51:00 +01:00
external:
external: true