Tidy
This commit is contained in:
parent
2f3135053f
commit
0b5fea7b71
@ -1,5 +1,5 @@
|
|||||||
# Service settings specific to this server
|
# 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
|
HOST_PORT=80
|
||||||
LOCAL_DATA_FOLDER="${HOME}/.example"
|
LOCAL_DATA_FOLDER="${HOME}/.example"
|
||||||
|
13
templates/watchtower/_basic.env
Normal file
13
templates/watchtower/_basic.env
Normal 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"
|
@ -4,6 +4,9 @@
|
|||||||
# JDE
|
# JDE
|
||||||
# 2025-04-25
|
# 2025-04-25
|
||||||
|
|
||||||
|
# This file is not required if you write your own template.
|
||||||
|
|
||||||
|
|
||||||
# Print error message and exit with code 1
|
# Print error message and exit with code 1
|
||||||
# Usage: die "error message"
|
# Usage: die "error message"
|
||||||
die() {
|
die() {
|
||||||
@ -19,12 +22,12 @@ load_env() {
|
|||||||
local env_file
|
local env_file
|
||||||
|
|
||||||
# first load basic.env for the template defaults
|
# first load basic.env for the template defaults
|
||||||
if [ -f "$script_dir/basic.env" ]; then
|
if [ -f "$script_dir/_basic.env" ]; then
|
||||||
set -a
|
set -a
|
||||||
source "$script_dir/basic.env"
|
source "$script_dir/_basic.env"
|
||||||
set +a
|
set +a
|
||||||
else
|
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
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
# Service settings
|
# Service settings
|
||||||
TEMPLATE=watchtower
|
|
||||||
|
|
||||||
CONTAINER_NAME=watchtower
|
|
||||||
|
|
||||||
# Interval in seconds between checks.
|
# Interval in seconds between checks.
|
||||||
# Default is 1800 seconds (30 minutes).
|
# Default is 1800 seconds (30 minutes).
|
||||||
INTERVAL=1800
|
INTERVAL=1800
|
||||||
|
|
||||||
# Image settings
|
|
||||||
IMAGE_REGISTRY="docker.io"
|
|
||||||
IMAGE_REPO="containrrr/watchtower"
|
|
||||||
IMAGE_TAG="latest"
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user