Update docker-compose.yaml
Added labels and network for traefik
This commit is contained in:
+18
-1
@@ -2,6 +2,19 @@ services:
|
||||
sonarr:
|
||||
image: lscr.io/linuxserver/sonarr:latest
|
||||
container_name: sonarr
|
||||
networks:
|
||||
- traefik-public
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.monitor-only=true"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.sonarr.rule=Host(`sonarr.speerfam.net`)"
|
||||
- "traefik.http.routers.sonarr.entrypoints=websecure"
|
||||
- "traefik.http.routers.sonarr.tls.certresolver=myresolver"
|
||||
|
||||
# Pulling the security rules dynamically from our file provider setup
|
||||
- "traefik.http.routers.sonarr.middlewares=geoblock-policy@file,crowdsec-policy@file,secure-headers@file"
|
||||
- "traefik.http.services.sonarr.loadbalancer.server.port=8989"
|
||||
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
@@ -12,4 +25,8 @@ services:
|
||||
- /downloads/complete/tv:/downloads/tv #optional
|
||||
ports:
|
||||
- 8989:8989
|
||||
restart: always
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
Reference in New Issue
Block a user