fix container startup

This commit is contained in:
Deckard
2025-10-03 20:48:26 -04:00
parent 71038930a7
commit 10e08f791a
2 changed files with 29 additions and 26 deletions

View File

@@ -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
# ==============================================

View File

@@ -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