diff --git a/services/agent-system/deploy.sh b/services/agent-system/deploy.sh index 8c80d94..c0719c3 100755 --- a/services/agent-system/deploy.sh +++ b/services/agent-system/deploy.sh @@ -1,11 +1,21 @@ #!/bin/bash set -e +# Host-specific override (e.g. CONTROL_PLANE_URL for runtime-materializer) — same +# convention as services/control-plane/deploy-local.sh. agent-system currently +# only runs on piha, so this is hardcoded like control-plane hardcodes vps. +COMPOSE_ARGS="-f docker-compose.yml" +OVERRIDE_FILE="../../hosts/piha/runtime/agent-system/docker-compose.override.yml" +if [ -f "$OVERRIDE_FILE" ]; then + echo ">>> Using override: $OVERRIDE_FILE" + COMPOSE_ARGS="$COMPOSE_ARGS -f $OVERRIDE_FILE" +fi + echo ">>> Validating docker-compose configuration..." -docker compose config +docker compose $COMPOSE_ARGS config echo ">>> Building and starting Agent System services..." -docker compose up -d --build +docker compose $COMPOSE_ARGS up -d --build echo ">>> Services status:" docker ps --filter "name=agent-system" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"