feat: added upacker and declutter

This commit is contained in:
Brian Pooe 2026-03-19 21:45:24 +02:00
parent 04051f1302
commit 48eb8acc65
2 changed files with 103 additions and 0 deletions

View file

@ -45,6 +45,15 @@ PGADMIN_PASSWORD=
SONARR_API_KEY=
RADARR_API_KEY=
# Decluttarr queue cleanup
# Set to True first for dry-run validation, then False to enable cleanup actions.
DECLUTTARR_TEST_RUN=False
# Queue cleanup interval in minutes.
DECLUTTARR_TIMER=10
# Strike threshold before stalled downloads are removed.
DECLUTTARR_MAX_STRIKES=3
DECLUTTARR_LOG_LEVEL=INFO
# Gramps config
TREE=
BASE_URL=

View file

@ -502,6 +502,100 @@ services:
max-file: "{{DOCKERLOGGING_MAXFILE}}"
max-size: "{{DOCKERLOGGING_MAXSIZE}}"
unpackerr:
image: ghcr.io/unpackerr/unpackerr:latest
container_name: unpackerr
restart: unless-stopped
labels:
- "com.synology.stack=media"
- "com.synology.service=archive-extractor"
networks:
- vpn-network
user: "{{PUID}}:{{PGID}}"
environment:
TZ: {{TZ}}
UN_LOG_FILE: /config/unpackerr.log
UN_SONARR_0_URL: http://sonarr:8989
UN_SONARR_0_API_KEY: {{SONARR_API_KEY}}
UN_RADARR_0_URL: http://radarr:7878
UN_RADARR_0_API_KEY: {{RADARR_API_KEY}}
volumes:
- /etc/localtime:/etc/localtime:ro
- {{DOCKERCONFDIR}}/unpackerr:/config
- {{DOCKERSTORAGEDIR}}:/data
depends_on:
sonarr:
condition: service_healthy
radarr:
condition: service_healthy
sabnzbd:
condition: service_healthy
gluetun:
condition: service_healthy
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 128M
logging:
driver: json-file
options:
max-file: "{{DOCKERLOGGING_MAXFILE}}"
max-size: "{{DOCKERLOGGING_MAXSIZE}}"
decluttarr:
image: ghcr.io/manimatter/decluttarr:latest
container_name: decluttarr
restart: unless-stopped
labels:
- "com.synology.stack=media"
- "com.synology.service=arr-queue-cleaner"
networks:
- vpn-network
environment:
TZ: {{TZ}}
PUID: {{PUID}}
PGID: {{PGID}}
LOG_LEVEL: {{DECLUTTARR_LOG_LEVEL:-INFO}}
TEST_RUN: {{DECLUTTARR_TEST_RUN:-False}}
TIMER: {{DECLUTTARR_TIMER:-10}}
REMOVE_FAILED_DOWNLOADS: "True"
REMOVE_FAILED_IMPORTS: "True"
REMOVE_METADATA_MISSING: "True"
REMOVE_MISSING_FILES: "True"
REMOVE_ORPHANS: "True"
REMOVE_STALLED: |
max_strikes: {{DECLUTTARR_MAX_STRIKES:-3}}
SONARR: >
- base_url: "http://sonarr:8989"
api_key: "{{SONARR_API_KEY}}"
RADARR: >
- base_url: "http://radarr:7878"
api_key: "{{RADARR_API_KEY}}"
depends_on:
sonarr:
condition: service_healthy
radarr:
condition: service_healthy
sabnzbd:
condition: service_healthy
gluetun:
condition: service_healthy
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 128M
security_opt:
- no-new-privileges:true
logging:
driver: json-file
options:
max-file: "{{DOCKERLOGGING_MAXFILE}}"
max-size: "{{DOCKERLOGGING_MAXSIZE}}"
networks:
vpn-network:
driver: bridge