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 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca257000c8
commit
4aea57a7d7
1 file changed
+5
-2
@@ -341,14 +341,17 @@ services:
|
|||||||
# Once a day, spend MAM bonus points on upload credit (json/bonusBuy.php,
|
# Once a day, spend MAM bonus points on upload credit (json/bonusBuy.php,
|
||||||
# spendtype=upload, "Max Affordable ") so seedbonus never caps out. Uses its
|
# spendtype=upload, "Max Affordable ") so seedbonus never caps out. Uses its
|
||||||
# own dedicated MAM session (MAM_BONUS_MAM_ID); the rotating cookie is kept
|
# 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
|
image: alpine:3.20
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks: [edge] # egress + ntfy:80 for failure alerts
|
networks: [edge] # egress + ntfy:80 for failure alerts
|
||||||
env_file:
|
env_file:
|
||||||
- stack.env
|
- stack.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./mam-bonus:/app:ro
|
# Absolute host path on purpose: a relative ./ mount resolves to
|
||||||
|
# /data/compose/<id>/... (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
|
- /config/mam-bonus:/data
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in new issue
Block a user