Add 15 and update 3 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 47s

This commit is contained in:
j
2025-12-17 18:25:24 +13:00
parent 2222a77070
commit 245837a872
18 changed files with 315 additions and 3 deletions

View File

@@ -10,6 +10,13 @@ if [ ! -f "${CONFIG_PATH}/caddyfile/Caddyfile" ]; then
_die "Caddyfile not found in ${CONFIG_PATH}/caddyfile/Caddyfile"
fi
# Determine static files directory
# Use HOST_STATIC_DIR if set, otherwise use config/static
if [ -n "${HOST_STATIC_DIR}" ]; then
STATIC_DIR="${HOST_STATIC_DIR}"
else
STATIC_DIR="${CONFIG_PATH}/static"
fi
DOCKER_RUN_CMD="docker run -d \
--restart unless-stopped \
@@ -21,7 +28,7 @@ DOCKER_RUN_CMD="docker run -d \
-v ${CONFIG_PATH}/caddyfile:/etc/caddy \
-v ${DATA_VOLUME}:/data \
-v ${CONFIG_VOLUME}:/config \
-v ${CONFIG_PATH}/static:/srv \
-v ${STATIC_DIR}:/static \
${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}"