-
Notifications
You must be signed in to change notification settings - Fork 1
/
lidarr.yml
40 lines (40 loc) · 1.67 KB
/
lidarr.yml
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
37
38
39
40
services:
# Lidarr - Music Management
# Set url_base in lidarr settings if using PathPrefix
lidarr:
image: lscr.io/linuxserver/lidarr:latest
container_name: lidarr
security_opt:
- no-new-privileges:true
restart: "no"
profiles: ["media","arrs", "all"]
networks:
- t3_proxy
ports:
- "8686:8686"
volumes:
- $DOCKERDIR/appdata/lidarr:/config
- $DATADIR:/data
- "/etc/localtime:/etc/localtime:ro"
environment:
TZ: $TZ
PUID: $PUID
PGID: $PGID
labels:
- "traefik.enable=true"
# HTTP Routers Auth Bypass
- "traefik.http.routers.lidarr-rtr-bypass.entrypoints=websecure"
#- "traefik.http.routers.lidarr-rtr-bypass.rule=Host(`lidarr.$DOMAINNAME_HS`) && (Header(`X-Api-Key`, `$LIDARR_API_KEY`) || Query(`apikey`, `$LIDARR_API_KEY`))"
- "traefik.http.routers.lidarr-rtr-bypass.rule=Host(`lidarr.$DOMAINNAME_HS`) && Header(`traefik-auth-bypass-key`, `$TRAEFIK_AUTH_BYPASS_KEY`)" # Bypass Auth for LunaSea on iOS
- "traefik.http.routers.lidarr-rtr-bypass.priority=100"
# HTTP Routers Auth
- "traefik.http.routers.lidarr-rtr.entrypoints=websecure"
- "traefik.http.routers.lidarr-rtr.rule=Host(`lidarr.$DOMAINNAME_HS`)"
- "traefik.http.routers.lidarr-rtr.priority=99"
# Middlewares
- "traefik.http.routers.lidarr-rtr-bypass.middlewares=chain-no-auth@file"
- "traefik.http.routers.lidarr-rtr.middlewares=chain-oauth@file"
# HTTP Services
- "traefik.http.routers.lidarr-rtr.service=lidarr-svc"
- "traefik.http.routers.lidarr-rtr-bypass.service=lidarr-svc"
- "traefik.http.services.lidarr-svc.loadbalancer.server.port=8686"