Modfify template.

This commit is contained in:
Your Name
2025-04-21 18:09:19 +12:00
parent b49bc0c5de
commit 3b3f1cf392
8 changed files with 120 additions and 102 deletions

View File

@ -1,14 +1,11 @@
#!/bin/bash
# Source common functions
source "$(dirname "$0")/_dockerhelper.sh"
source "$(dirname "$0")/_common.sh"
# Load environment variables
load_env "$1" || die "Failed to load environment variables"
create_and_start_container || die "Failed to start container ${CONTAINER_NAME}"
grey_start
docker logs --tail 20 "${CONTAINER_NAME}"
grey_end
create_and_start_container "docker run -d \
--restart unless-stopped \
--name ${CONTAINER_NAME} \
-p ${HOST_PORT}:${CONTAINER_PORT} \
-v ${LOCAL_DATA_FOLDER}/data:/skdata \
${IMAGE_REGISTRY}/${IMAGE_REPO}:${IMAGE_TAG}"
|| die "Failed to start container ${CONTAINER_NAME}"