45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
services:
|
|
sonarr:
|
|
image: lscr.io/linuxserver/sonarr:latest
|
|
container_name: sonarr
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Asia/Baku
|
|
volumes:
|
|
- ./config:/config
|
|
- /mnt/storage/films:/media
|
|
- /mnt/storage/films/downloads:/downloads
|
|
|
|
ports:
|
|
- 8989:8989
|
|
restart: unless-stopped
|
|
networks:
|
|
- mediastack
|
|
- web_net
|
|
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=web_net"
|
|
|
|
# HTTPS
|
|
- "traefik.http.routers.sonarr.rule=Host(`sonarr.home.server`)"
|
|
- "traefik.http.routers.sonarr.entrypoints=websecure"
|
|
- "traefik.http.routers.sonarr.tls=true"
|
|
- "traefik.http.routers.sonarr.service=sonarr"
|
|
- "traefik.http.routers.sonarr.middlewares=security-headers@file"
|
|
|
|
# HTTP → HTTPS redirect
|
|
- "traefik.http.routers.sonarr-http.rule=Host(`sonarr.home.server`)"
|
|
- "traefik.http.routers.sonarr-http.entrypoints=web"
|
|
- "traefik.http.routers.sonarr-http.middlewares=redirect-to-https@file"
|
|
|
|
# Internal port (Filebrowser listens on 8989 inside the container)
|
|
- "traefik.http.services.sonarr.loadbalancer.server.port=8989"
|
|
|
|
networks:
|
|
mediastack:
|
|
external: true
|
|
web_net:
|
|
external: true
|