docker-compose: put Rust services behind 'rust' profile so Node services start independently

docker compose up -d          → starts Node services only (fast)
docker compose --profile rust up -d → starts everything including Rust (slow build)
This commit is contained in:
2026-03-01 19:15:49 +00:00
parent 6c97ce0547
commit aec0d62787

View File

@@ -49,7 +49,11 @@ services:
# --- dd0c Products --- # --- dd0c Products ---
# P1: LLM Cost Router (Rust — API server) # P1: LLM Cost Router (Rust — API server)
# NOTE: Rust services are behind the "rust" profile because they take 10+ min to compile.
# Start without Rust: docker compose up -d
# Start with Rust: docker compose --profile rust up -d
route-api: route-api:
profiles: ["rust"]
build: build:
context: ./01-llm-cost-router context: ./01-llm-cost-router
dockerfile: Dockerfile dockerfile: Dockerfile
@@ -68,6 +72,7 @@ services:
# P1: LLM Cost Router (Rust — proxy) # P1: LLM Cost Router (Rust — proxy)
route-proxy: route-proxy:
profiles: ["rust"]
build: build:
context: ./01-llm-cost-router context: ./01-llm-cost-router
dockerfile: Dockerfile dockerfile: Dockerfile
@@ -84,6 +89,7 @@ services:
# P1: LLM Cost Router (Rust — worker) # P1: LLM Cost Router (Rust — worker)
route-worker: route-worker:
profiles: ["rust"]
build: build:
context: ./01-llm-cost-router context: ./01-llm-cost-router
dockerfile: Dockerfile dockerfile: Dockerfile