From 10e08f791ad9aa8844d4a75d7bda51762d76d758 Mon Sep 17 00:00:00 2001 From: Deckard Date: Fri, 3 Oct 2025 20:48:26 -0400 Subject: [PATCH] fix container startup --- docker-compose-azerothcore-services.env | 36 ++++++++++++------------- docker-compose-azerothcore-services.yml | 19 +++++++------ 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/docker-compose-azerothcore-services.env b/docker-compose-azerothcore-services.env index 9a026e8..a1a2063 100644 --- a/docker-compose-azerothcore-services.env +++ b/docker-compose-azerothcore-services.env @@ -11,6 +11,24 @@ STORAGE_ROOT=./storage # Storage configuration (must match database layer) STORAGE_PATH=${STORAGE_ROOT}/azerothcore +# ============================================== +# NETWORK CONFIGURATION +# ============================================== +# External ports for game services +AUTH_EXTERNAL_PORT=3784 +WORLD_EXTERNAL_PORT=8215 +SOAP_EXTERNAL_PORT=7778 + +# Server address for client connections (production) +SERVER_ADDRESS=192.168.0.188 +# Use WORLD_EXTERNAL_PORT for realmlist (client connection port) +REALM_PORT=8215 + +# Internal ports (container side) +AUTH_PORT=3724 +WORLD_PORT=8085 +SOAP_PORT=7878 + # ============================================== # DATABASE CONNECTION # ============================================== @@ -57,24 +75,6 @@ WORLD_HEALTHCHECK_TIMEOUT=10s WORLD_HEALTHCHECK_RETRIES=3 WORLD_HEALTHCHECK_START_PERIOD=120s -# ============================================== -# NETWORK CONFIGURATION -# ============================================== -# External ports for game services -AUTH_EXTERNAL_PORT=3784 -WORLD_EXTERNAL_PORT=8215 -SOAP_EXTERNAL_PORT=7778 - -# Server address for client connections (production) -SERVER_ADDRESS=192.168.0.188 -# Use WORLD_EXTERNAL_PORT for realmlist (client connection port) -REALM_PORT=8215 - -# Internal ports (container side) -AUTH_PORT=3724 -WORLD_PORT=8085 -SOAP_PORT=7878 - # ============================================== # CONTAINER NAMES # ============================================== diff --git a/docker-compose-azerothcore-services.yml b/docker-compose-azerothcore-services.yml index 1ca44e5..e0921d8 100644 --- a/docker-compose-azerothcore-services.yml +++ b/docker-compose-azerothcore-services.yml @@ -1125,15 +1125,12 @@ services: - sh - -c - | - # Install bash first - echo "📦 Installing bash..." - apk add --no-cache bash + # Install required packages + echo "📦 Installing required packages..." + apk add --no-cache bash curl # Download post-install script from GitHub (fallback to local for testing) echo "📥 Downloading auto post-install script..." - echo "🔍 Checking project directory contents:" - ls -la /project/scripts/ || echo "❌ /project/scripts/ not found" - if curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/auto-post-install.sh -o /tmp/auto-post-install.sh 2>/dev/null; then echo "✅ Downloaded from GitHub" elif [ -f "/project/scripts/auto-post-install.sh" ]; then @@ -1145,8 +1142,14 @@ services: ls -la /tmp/auto-post-install.sh else echo "❌ Script not found in GitHub or locally" - echo "🔍 Available files in /project/scripts/:" - ls -la /project/scripts/ || echo "Directory not accessible" + echo "🔍 Debugging information:" + echo " Project directory mount status:" + ls -la /project/ || echo " ❌ /project/ not accessible" + echo " Scripts directory status:" + ls -la /project/scripts/ || echo " ❌ /project/scripts/ not found" + echo " Current working directory: $(pwd)" + echo " Available volumes:" + df -h || echo " ❌ Cannot check volumes" exit 1 fi chmod +x /tmp/auto-post-install.sh