From 2e4c7eed583f7d96f9f4288ec5f5099e55661f21 Mon Sep 17 00:00:00 2001 From: LogWatch Date: Sun, 22 Mar 2026 09:05:26 +0100 Subject: [PATCH] refactor: use env var substitution for Portainer Repository stack Variables now use \${VAR:-default} syntax so they can be set via Portainer's environment editor without modifying the compose file. Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3a22728..564cad5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,11 +5,8 @@ services: container_name: logwatch restart: unless-stopped environment: - # ntfy source channel (your Watchtower notifications) - - SOURCE_URL=https://ntfy.albert-zangerl.com/albert - # ntfy target channel (where important stuff goes) - - TARGET_URL=https://ntfy.albert-zangerl.com/wichtig - # optional: Bearer token if target channel needs auth - # - TARGET_TOKEN=your-token-here - - LOG_LEVEL=INFO - - RECONNECT_DELAY=10 + - SOURCE_URL=${SOURCE_URL:-https://ntfy.albert-zangerl.com/albert} + - TARGET_URL=${TARGET_URL:-https://ntfy.albert-zangerl.com/wichtig} + - TARGET_TOKEN=${TARGET_TOKEN:-} + - LOG_LEVEL=${LOG_LEVEL:-INFO} + - RECONNECT_DELAY=${RECONNECT_DELAY:-10}