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:
@@ -49,7 +49,11 @@ services:
|
||||
|
||||
# --- dd0c Products ---
|
||||
# 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:
|
||||
profiles: ["rust"]
|
||||
build:
|
||||
context: ./01-llm-cost-router
|
||||
dockerfile: Dockerfile
|
||||
@@ -68,6 +72,7 @@ services:
|
||||
|
||||
# P1: LLM Cost Router (Rust — proxy)
|
||||
route-proxy:
|
||||
profiles: ["rust"]
|
||||
build:
|
||||
context: ./01-llm-cost-router
|
||||
dockerfile: Dockerfile
|
||||
@@ -84,6 +89,7 @@ services:
|
||||
|
||||
# P1: LLM Cost Router (Rust — worker)
|
||||
route-worker:
|
||||
profiles: ["rust"]
|
||||
build:
|
||||
context: ./01-llm-cost-router
|
||||
dockerfile: Dockerfile
|
||||
|
||||
Reference in New Issue
Block a user