Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion pmoves/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3874,13 +3874,26 @@ OVERLAY_PROFILES_WORKERS := --profile workers
OVERLAY_PROFILES_APPS := --profile apps
OVERLAY_PROFILES_FULL := $(OVERLAY_PROFILES_CORE) $(OVERLAY_PROFILES_AGENTS) $(OVERLAY_PROFILES_MEDIA) $(OVERLAY_PROFILES_UI) $(OVERLAY_PROFILES_WORKERS) $(OVERLAY_PROFILES_APPS)

.PHONY: overlay-up-full overlay-up-core overlay-up-agents overlay-up-media overlay-up-ui overlay-up-workers overlay-up-apps overlay-down
.PHONY: overlay-up-full overlay-up-bus overlay-up-core overlay-up-agents overlay-up-media overlay-up-ui overlay-up-workers overlay-up-apps overlay-down

overlay-up-full: ## Start ALL services via overlay files (base + all tiers)
@echo "🚀 Starting full stack via overlay files..."
@$(OVERLAY_DC) $(OVERLAY_CORE) $(OVERLAY_AGENTS) $(OVERLAY_MEDIA) $(OVERLAY_UI) $(OVERLAY_WORKERS) $(OVERLAY_APPS) $(OVERLAY_PROFILES_FULL) up -d
@echo "✅ Full stack started (84 services across 6 overlays)"

# overlay-up-bus brings up ONLY the NATS event bus via the split overlays
# (OVERLAY_DC = base+core), NOT the monolith via DC/STACK_FILES. The monolith's
# CHIT app services (agent-zero, evo-controller, hi-rag-gateway-gpu) carry a
# fail-fast required-passphrase guard that compose resolves project-wide at parse
# time, blocking even a single-service `up -d nats` on nodes that do not hold the
# voice-activated CHIT passphrase (e.g. kvm4-2). base.yml/core.yml carry no such
# guard and core.yml's nats uses NATS_USER/NATS_PASSWORD defaults, so the bus comes
# up cleanly with the fleet-wide fail-fast guards left fully intact.
overlay-up-bus: ## Start ONLY the NATS event bus via overlay (no CHIT passphrase / no app services)
@echo "📨 Starting NATS event bus via overlay (base+core, bus-only)..."
@$(OVERLAY_DC) $(OVERLAY_CORE) up -d nats nats-init

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make bus-only startup avoid required service env_files

On a clean/CHIT-less node that only has the .example env files, this command still aborts before starting NATS: docker-compose.core.yml has nats inherit service-level env_file: env.shared and env.tier-data (core.yml lines 11-14). The Makefile's --env-file env.shared.example only supplies Compose interpolation and does not satisfy those container env_file paths; Docker documents those entries as required by default (required: true # default), so up fails with a missing env-file error in exactly the fresh-worktree scenario this target is meant to support. Use an override that makes these env_files optional for the bus-only path or create/copy the real files before invoking Compose.

Useful? React with 👍 / 👎.

@echo "✅ NATS event bus started (no CHIT passphrase required — app guards untouched)"

overlay-up-core: ## Start core infrastructure via overlay (nats, supabase, data stores)
@$(OVERLAY_DC) $(OVERLAY_CORE) $(OVERLAY_PROFILES_CORE) up -d
@echo "✅ Core infrastructure started (24 services)"
Expand Down
Loading