From 9147d05cc47b8380cd8f6d76ad5f7351bb538d60 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Wed, 21 Aug 2024 14:32:15 -0700 Subject: [PATCH] lib0.2.9 --- libs/cli/langgraph_cli/docker.py | 17 +++++++++++++++-- libs/langgraph/pyproject.toml | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/libs/cli/langgraph_cli/docker.py b/libs/cli/langgraph_cli/docker.py index 79e0dd25a..d2cffc26b 100644 --- a/libs/cli/langgraph_cli/docker.py +++ b/libs/cli/langgraph_cli/docker.py @@ -12,6 +12,15 @@ "postgres://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable" ) +REDIS = """ + langgraph-redis: + image: redis:6 + healthcheck: + test: redis-cli ping + interval: 5s + timeout: 1s + retries: 5 +""" DB = """ langgraph-postgres: @@ -166,18 +175,22 @@ def compose( compose_str = f"""{volumes}services: {db} +{REDIS} {debugger_compose(port=debugger_port, base_url=debugger_base_url)} langgraph-api: ports: - - "{port}:8000\"""" + - "{port}:8000\" + depends_on: + langgraph-redis: + condition: service_healthy""" if include_db: compose_str += """ - depends_on: langgraph-postgres: condition: service_healthy""" compose_str += f""" environment: POSTGRES_URI: {postgres_uri} + REDIS_URI: redis://langgraph-redis:6379 """ if capabilities.healthcheck_start_interval: compose_str += """ healthcheck: diff --git a/libs/langgraph/pyproject.toml b/libs/langgraph/pyproject.toml index 93dc203f2..1df951ee4 100644 --- a/libs/langgraph/pyproject.toml +++ b/libs/langgraph/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langgraph" -version = "0.2.8" +version = "0.2.9" description = "Building stateful, multi-actor applications with LLMs" authors = [] license = "MIT"