Files
bamort/docker/start-prd.sh
T
Frank 45d56674c1 updated help text and FAQ
added build to start script before shuting down the containers
2026-02-02 14:28:06 +01:00

24 lines
618 B
Bash
Executable File

#!/bin/bash
echo "🚀 Starting Bamort Production Environment..."
# 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..."
# Build before stopping existing containers
docker-compose -f docker-compose.yml build
# Stoppe vorhandene Container
docker-compose -f docker-compose.yml down
# Baue und starte die Container
docker-compose -f docker-compose.yml up --build -d
echo "✅ Production environment started."