feat(cli): add debugger host CLI flag to specify default base URL (#900)

This commit is contained in:
David Duong
2024-07-08 20:47:50 -04:00
committed by GitHub
parent bb6785bbef
commit 293bc2c11f
3 changed files with 51 additions and 16 deletions
+6 -2
View File
@@ -20,6 +20,7 @@ def test_prepare_args_and_stdin():
)
port = 8000
debugger_port = 8001
debugger_graph_url = f"http://127.0.0.1:{port}"
actual_args, actual_stdin = prepare_args_and_stdin(
capabilities=DEFAULT_DOCKER_CAPABILITIES,
@@ -28,6 +29,7 @@ def test_prepare_args_and_stdin():
docker_compose="custom-docker-compose.yml",
port=port,
debugger_port=debugger_port,
debugger_base_url=debugger_graph_url,
watch=True,
)
@@ -63,11 +65,13 @@ services:
langgraph-debugger:
image: langchain/langgraph-debugger
restart: on-failure
ports:
- "{debugger_port}:3968"
depends_on:
langgraph-postgres:
condition: service_healthy
ports:
- "{debugger_port}:3968"
environment:
VITE_STUDIO_LOCAL_GRAPH_URL: {debugger_graph_url}
langgraph-api:
ports:
- "8000:8000"