bind network and remote cleanup

This commit is contained in:
uprightbass360
2025-11-09 05:15:58 -05:00
parent 964359e32b
commit 90c53c47d9
2 changed files with 15 additions and 0 deletions

View File

@@ -221,6 +221,8 @@ services:
chmod -R 755 /azerothcore/data /cache chmod -R 755 /azerothcore/data /cache
echo "✅ Docker volume permissions fixed" echo "✅ Docker volume permissions fixed"
restart: "no" restart: "no"
networks:
- azerothcore
ac-storage-init: ac-storage-init:
profiles: ["db", "modules"] profiles: ["db", "modules"]
@@ -244,6 +246,8 @@ services:
chmod -R 755 /storage-root /local-storage-root chmod -R 755 /storage-root /local-storage-root
echo "✅ Storage permissions initialized" echo "✅ Storage permissions initialized"
restart: "no" restart: "no"
networks:
- azerothcore
# ===================== # =====================
# Client Data (client-data) # Client Data (client-data)

View File

@@ -349,6 +349,17 @@ if [[ $SKIP_STORAGE -eq 0 ]]; then
fi fi
fi fi
reset_remote_post_install_marker(){
local marker_dir="$REMOTE_STORAGE/install-markers"
local marker_path="$marker_dir/post-install-completed"
echo "⋅ Resetting remote post-install markers"
run_ssh "mkdir -p '$marker_dir' && rm -f '$marker_path'"
}
if [[ $SKIP_STORAGE -eq 0 ]]; then
reset_remote_post_install_marker
fi
# Clean up stale Docker resources before loading new images # Clean up stale Docker resources before loading new images
cleanup_stale_docker_resources cleanup_stale_docker_resources