#!/bin/bash # Run sysmonstm full stack locally with edge forwarding # Usage: ./ctrl/run.sh [--remote] # # Examples: # ./ctrl/run.sh # Build locally (default) # ./ctrl/run.sh --remote # Use registry images cd "$(dirname "$0")/.." # Load env from ctrl/.env set -a source ctrl/.env set +a if [ "$1" = "--remote" ]; then echo "Using remote images from registry" docker compose pull docker compose up "${@:2}" else echo "Building locally..." docker compose up --build "$@" fi