Agregando sonarr al stack

This commit is contained in:
2026-03-12 09:55:06 -03:00
parent 399b36b7e7
commit 6b351e4bb8
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
CONFIG_DIR="./config"
MEDIA_ANIME="./media/anime"
MEDIA_TV="./media/anime"
MEDIA_DOWNLOADS="./media/downloads"

View File

@@ -0,0 +1,19 @@
services:
sonarr:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.sonarr-web.rule=Host(`sonarr.skrd.fun`)"
- "traefik.http.routers.sonarr-web.entrypoints=web"
- "traefik.http.routers.sonarr-web.middlewares=redirect-to-https@file"
- "traefik.http.routers.sonarr.rule=Host(`sonarr.skrd.fun`)"
- "traefik.http.routers.sonarr.entrypoints=websecure"
- "traefik.http.routers.sonarr.tls.certresolver=cf"
- "traefik.http.services.sonarr.loadbalancer.server.port=8080"
networks:
- proxy
networks:
proxy:
name: traefik
external: true

13
stacks/sonarr/compose.yml Normal file
View File

@@ -0,0 +1,13 @@
services:
sonarr:
image: ghcr.io/hotio/sonarr:release-4.0.16.2944
environment:
- PUID=1000
- PGID=1000
- UMASK=002
- TZ=America/Santiago
volumes:
- ${CONFIG_DIR}:/config
- ${MEDIA_ANIME}:/data/anime
- ${MEDIA_TV}:/data/tv
- ${MEDIA_DOWNLOADS}:/data/downloads