initial working

This commit is contained in:
2025-10-31 21:00:14 +01:00
commit c850cc6e7e
212 changed files with 24622 additions and 0 deletions

33
vm1/deploy-ha.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
set -e
NODE_NAME=$(hostname)
echo "🚀 Deploying on $NODE_NAME..."
if [ ! -f .env ]; then
echo "⚠ .env not found, copying from .env.example"
cp .env.example .env
fi
source .env
echo "✓ Building images..."
docker compose build
echo "✓ Starting services..."
docker compose up -d
sleep 10
echo "✓ Checking VIP..."
if ip addr show | grep -q "${VIP}"; then
echo "✓ This node has the VIP (MASTER)"
else
echo " This node does not have the VIP (BACKUP)"
fi
echo "✓ Services status:"
docker compose ps
echo ""
echo "✅ Deployment completed!"