Add initial setup for Azerothcore with Docker and environment configuration

This commit is contained in:
notepadguyOfficial
2025-02-11 16:06:15 +08:00
parent a65bb95553
commit 1620931318
10 changed files with 461 additions and 2 deletions

23
start_stop_acore.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
manage_docker_containers() {
containers=("ac-worldserver" "ac-authserver" "ac-database")
all_running=true
for container in "${containers[@]}"; do
if ! docker ps --format '{{.Names}}' | grep -q "^${container}$"; then
all_running=false
break
fi
done
if $all_running; then
echo "Stopping containers: ${containers[*]}"
docker stop "${containers[@]}"
else
echo "Starting containers: ${containers[*]}"
docker start "${containers[@]}"
fi
}
manage_docker_containers