-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.sonarr.yaml
36 lines (35 loc) · 1.04 KB
/
compose.sonarr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
networks:
reverse-proxy:
external: true
services:
sonarr:
image: lscr.io/linuxserver/sonarr:4.0.13@sha256:49a8e636fd4514b23d37c84660101fecbb632174ba0569e0f09bbd2659a2a925
container_name: sonarr
cpus: 1
mem_limit: 4096m
restart: unless-stopped
expose:
- 8989
networks:
- reverse-proxy
healthcheck:
test: ["CMD", "curl", "--fail", "http://sonarr:8989/ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
start_interval: 5s
volumes:
- ~/home-server/sonarr/config:/config
- /mnt/raid/downloads:/downloads
- /mnt/raid/media/series:/series
environment:
- PGID=${GID}
- PUID=${UID}
- TZ=${TZ}
labels:
- traefik.enable=true
- traefik.http.routers.sonarr.entrypoints=websecure
- traefik.http.routers.sonarr.rule=Host(`sonarr.${DOMAIN_NAME}`) || Host(`series.${DOMAIN_NAME}`)
- traefik.http.routers.sonarr.middlewares=chain-no-auth@file
- traefik.http.services.sonarr.loadbalancer.server.port=8989