app-store/apps/sonarr/docker-compose.yml
renovate[bot] e169ef040c
chore(deps): update lscr.io/linuxserver/sonarr docker tag to v4 (#1919)
* chore(deps): update lscr.io/linuxserver/sonarr docker tag to v4

* Update app version [ready]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tipi CI <ci@runtipi.io>
2023-12-30 17:42:47 +01:00

46 lines
1.7 KiB
YAML

version: "3.7"
services:
sonarr:
image: lscr.io/linuxserver/sonarr:4.0.0
container_name: sonarr
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
dns:
- ${DNS_IP}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${APP_DATA_DIR}/data:/config
- ${ROOT_FOLDER_HOST}/media:/media
ports:
- ${APP_PORT}:8989
restart: unless-stopped
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.sonarr-web-redirect.redirectscheme.scheme: https
traefik.http.services.sonarr.loadbalancer.server.port: 8989
# Web
traefik.http.routers.sonarr-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.sonarr-insecure.entrypoints: web
traefik.http.routers.sonarr-insecure.service: sonarr
traefik.http.routers.sonarr-insecure.middlewares: sonarr-web-redirect
# Websecure
traefik.http.routers.sonarr.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.sonarr.entrypoints: websecure
traefik.http.routers.sonarr.service: sonarr
traefik.http.routers.sonarr.tls.certresolver: myresolver
# Local domain
traefik.http.routers.sonarr-local-insecure.rule: Host(`sonarr.${LOCAL_DOMAIN}`)
traefik.http.routers.sonarr-local-insecure.entrypoints: web
traefik.http.routers.sonarr-local-insecure.service: sonarr
traefik.http.routers.sonarr-local-insecure.middlewares: sonarr-web-redirect
# Local domain secure
traefik.http.routers.sonarr-local.rule: Host(`sonarr.${LOCAL_DOMAIN}`)
traefik.http.routers.sonarr-local.entrypoints: websecure
traefik.http.routers.sonarr-local.service: sonarr
traefik.http.routers.sonarr-local.tls: true