From 4aea57a7d72e8a059ab89c7167a41ed69835d8da Mon Sep 17 00:00:00 2001 From: ginnoir Date: Sat, 21 Nov 2026 17:25:35 -0600 Subject: [PATCH] fix(media): mount mam-bonus script from /config, not ./ A relative bind resolves to /data/compose/10/... (the path inside the Portainer container), so Docker bound an empty host dir and the job had no script. Use the absolute /config/mam-bonus/buy-upload.sh like the backup stack does. Co-Authored-By: Claude Opus 5.5 --- stacks/media/docker-compose.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stacks/media/docker-compose.yml b/stacks/media/docker-compose.yml index 3ce1228..08d6a99 100644 --- a/stacks/media/docker-compose.yml +++ b/stacks/media/docker-compose.yml @@ -341,14 +341,17 @@ services: # Once a day, spend MAM bonus points on upload credit (json/bonusBuy.php, # spendtype=upload, "Max Affordable ") so seedbonus never caps out. Uses its # own dedicated MAM session (MAM_BONUS_MAM_ID); the rotating cookie is kept - # in /config/mam-bonus. Failures go to ntfy topic `mam`. Script: ./mam-bonus. + # in /config/mam-bonus. Failures go to ntfy topic `mam`. image: alpine:3.20 restart: unless-stopped networks: [edge] # egress + ntfy:80 for failure alerts env_file: - stack.env volumes: - - ./mam-bonus:/app:ro + # Absolute host path on purpose: a relative ./ mount resolves to + # /data/compose//... (Portainer-internal) and binds an EMPTY host dir. + # Canonical copy is stacks/media/mam-bonus/buy-upload.sh; scp it here. + - /config/mam-bonus/buy-upload.sh:/app/buy-upload.sh:ro - /config/mam-bonus:/data entrypoint: ["/bin/sh", "-c"] command: