Update docker-compose.yaml

Added labels and network for traefik
This commit is contained in:
2026-05-30 14:26:10 -05:00
parent 470c0c97f6
commit e3935da32d
+17
View File
@@ -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
@@ -13,3 +26,7 @@ services:
ports:
- 8989:8989
restart: always
networks:
traefik-public:
external: true