-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 866 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (27 loc) · 866 Bytes
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
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
env_file: /media/docker_volumes/docker.env
volumes:
- /media/docker_volumes/sonarr:/config
- /media/libraries/tv:/tv
- /media/usenet:/usenet
restart: unless-stopped # Automatically restart Sonarr unless explicitly stopped
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8989/sonarr/ping" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
labels:
traefik.enable: "true"
traefik.http.routers.sonarr.rule: "Host(`${DOMAIN_NAME?error}`)"
traefik.http.routers.sonarr.entrypoints: "https"
traefik.http.routers.sonarr.tls: "true"
traefik.http.services.sonarr.loadbalancer.server.port: "8989"
networks:
- proxy
networks:
proxy:
external: true