Caddy updates.

This commit is contained in:
Your Name
2025-05-19 19:53:13 +12:00
parent 9be56685ec
commit 70536b623b
5 changed files with 8 additions and 4 deletions

View File

@ -6,15 +6,19 @@ _check_required_env_vars
# The start script is required for all templates.
# It is used to start the service on the server.
if [ ! -f "${CONFIG_PATH}/caddyfile/Caddyfile" ]; then
_die "Caddyfile not found in ${CONFIG_PATH}/caddyfile/Caddyfile"
fi
DOCKER_RUN_CMD="docker run -d \
--restart unless-stopped \
--name ${CONTAINER_NAME} \
--cap-add=NET_ADMIN \
-p 80:80 \
-p 443:443 \
-p 443:443/udp \
-v ${CONFIG_PATH}/Caddyfile:/etc/caddy/Caddyfile \
-v ${CONFIG_PATH}/caddyfile:/etc/caddy \
-v ${DATA_VOLUME}:/data \
-v ${CONFIG_VOLUME}:/config \
-v ${CONFIG_PATH}/static:/srv \