#!/bin/bash

# AAF Systems Homepage - Docker Stop Script

echo "🛑 Stopping AAF Systems Homepage Docker Container"
echo "================================================"

# Stop and remove the container
echo "🔍 Stopping container..."
sudo docker stop aaf-systems-homepage 2>/dev/null || echo "Container not running"

echo "🗑️  Removing container..."
sudo docker rm aaf-systems-homepage 2>/dev/null || echo "Container not found"

# If using docker-compose, stop that too
if command -v docker-compose &> /dev/null; then
    echo "🔍 Stopping docker-compose services..."
    sudo docker-compose down 2>/dev/null || echo "No docker-compose services running"
fi

echo "✅ Cleanup complete!"
