This commit is contained in:
Your Name 2025-04-25 12:59:06 +12:00
parent 2f3135053f
commit 0b5fea7b71
6 changed files with 20 additions and 12 deletions

View File

@ -1,5 +1,5 @@
# Service settings specific to this server
# (can also override anything in the basic.env file in the template to make it specific to this server)
# (can also override anything in the _basic.env file in the template to make it specific to this server)
HOST_PORT=80
LOCAL_DATA_FOLDER="${HOME}/.example"

View File

@ -0,0 +1,13 @@
# Service settings
TEMPLATE=watchtower
CONTAINER_NAME=watchtower
# Interval in seconds between checks.
# Default is 1800 seconds (30 minutes).
INTERVAL=1800
# Image settings
IMAGE_REGISTRY="docker.io"
IMAGE_REPO="containrrr/watchtower"
IMAGE_TAG="latest"

View File

@ -4,6 +4,9 @@
# JDE
# 2025-04-25
# This file is not required if you write your own template.
# Print error message and exit with code 1
# Usage: die "error message"
die() {
@ -19,12 +22,12 @@ load_env() {
local env_file
# first load basic.env for the template defaults
if [ -f "$script_dir/basic.env" ]; then
if [ -f "$script_dir/_basic.env" ]; then
set -a
source "$script_dir/basic.env"
source "$script_dir/_basic.env"
set +a
else
echo "Warning: basic.env file not found at $script_dir/basic.env. Broken template?"
echo "Warning: basic.env file not found at $script_dir/_basic.env. Broken template?"
return 1
fi

View File

@ -1,14 +1,6 @@
# Service settings
TEMPLATE=watchtower
CONTAINER_NAME=watchtower
# Interval in seconds between checks.
# Default is 1800 seconds (30 minutes).
INTERVAL=1800
# Image settings
IMAGE_REGISTRY="docker.io"
IMAGE_REPO="containrrr/watchtower"
IMAGE_TAG="latest"