Build [v1.9.7] (Fix ERR_SSL_PROTOCOL_ERROR: Explicit HTTPS in Caddyfile)

This commit is contained in:
Daniel Bedeleanu
2026-04-13 21:42:58 +03:00
parent e5194a1dbb
commit 9348336709
3 changed files with 11 additions and 7 deletions

View File

@@ -14,7 +14,14 @@ fi
# 2. Source the env file for the current shell (helps some docker versions)
export $(grep -v '^#' inventory.env | xargs)
# 3. Run Docker Compose with explicit env-file flag
# 3. Optional: Reset Caddy certificates if needed
if [[ "$*" == *"--reset-ssl"* ]]; then
echo "🧹 Resetting Caddy certificates..."
docker compose down
docker volume rm ainventory_caddy_data ainventory_caddy_config 2>/dev/null || true
fi
# 4. Run Docker Compose with explicit env-file flag
echo "🚀 Building and starting containers..."
docker compose --env-file inventory.env up -d --build --remove-orphans