#!/bin/bash echo "πŸš€ Starting Bamort Development 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")" # Load development environment variables if [ -f .env.dev ]; then echo "πŸ“ Loading configuration from .env.dev" export $(grep -v '^#' .env.dev | xargs) else if [ -f .env ]; then echo "πŸ“ Loading configuration from .env" export $(grep -v '^#' .env | xargs) else echo "⚠️ Warning: .env not found, using defaults" fi fi # Get current git commit export GIT_COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown") echo "πŸ“ Git Commit: $GIT_COMMIT" echo "πŸ“¦ Building and starting development containers..." echo "πŸ”§ Frontend will use API: ${API_URL:-http://localhost:8180}" # Stoppe vorhandene Container docker-compose -f docker-compose.dev.yml down # Baue und starte die Container docker-compose -f docker-compose.dev.yml --env-file .env.dev up --build -d echo "βœ… Development environment started." echo "πŸ“± Frontend: http://localhost:5173" echo "πŸ”Œ Backend: http://localhost:8180" echo "πŸ—„οΈ phpMyAdmin: http://localhost:8081"