managarten/scripts/mac-mini/stop.sh
Till-JS 93060dc335 feat(mac-mini): add auto-start and management scripts
- setup-autostart.sh: Configure launchd services for boot
- startup.sh: Main startup script (waits for Docker, starts containers)
- health-check.sh: Check all services (runs every 5 min)
- status.sh: Full system status overview
- restart.sh: Restart containers (with --pull and --force options)
- stop.sh: Stop all containers gracefully
- README.md: Complete documentation

Includes optional ntfy.sh push notifications for health check failures.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:48:24 +01:00

23 lines
664 B
Bash
Executable file

#!/bin/bash
# ManaCore Mac Mini Stop Script
# Stops all Docker containers
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
COMPOSE_FILE="$PROJECT_ROOT/docker-compose.macmini.yml"
ENV_FILE="$PROJECT_ROOT/.env.macmini"
echo "=== Stopping ManaCore Services ==="
echo ""
cd "$PROJECT_ROOT"
echo "Stopping Docker containers..."
docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" down
echo ""
echo "Containers stopped."
echo ""
echo "Note: Cloudflare tunnel is still running (managed by launchd)"
echo "To stop tunnel: launchctl unload ~/Library/LaunchAgents/com.cloudflare.cloudflared.plist"
echo ""