Files

24 lines
618 B
Bash
Raw Permalink Normal View History

2025-12-26 08:45:47 +01:00
#!/bin/bash
echo "🚀 Starting Bamort Production Environment..."
2025-12-26 08:45:47 +01:00
# Prüfe ob Docker läuft
if ! docker info > /dev/null 2>&1; then
echo "❌ Docker ist nicht gestartet. Bitte starte Docker zuerst."
exit 1
fi
# Gehe ins Docker-Verzeichnis
cd "$(dirname "$0")"
echo "📦 Building and starting production containers..."
2026-02-02 14:28:06 +01:00
# Build before stopping existing containers
docker-compose -f docker-compose.yml build
2025-12-26 08:45:47 +01:00
# Stoppe vorhandene Container
docker-compose -f docker-compose.yml down
# Baue und starte die Container
2025-12-28 14:18:02 +01:00
docker-compose -f docker-compose.yml up --build -d
2025-12-26 08:45:47 +01:00
echo "✅ Production environment started."