langgraph/how-tos/deploy-self-hosted/ #2460
Replies: 8 comments 9 replies
-
This does not work at all. Running into a ton of issues running the application locally using docker and docker compose. |
Beta Was this translation helpful? Give feedback.
-
I am successfully running my application locally on Docker and it's working fine on Langgraph Studio. However, I have a node.js frontend and I am getting the following error message. Unhandled Runtime Error Call Stack It seem I am not hooking properly to the API server. What configuration do I need to do to properly connect the local API server to the frontend client? What values to I need to set for the following environmental variables? |
Beta Was this translation helpful? Give feedback.
-
When I use the docker compose, the error print like this:
The docker-compose.yml is below: volumes:
langgraph-data:
driver: local
services:
langgraph-redis:
image: redis:6
healthcheck:
test: redis-cli ping
interval: 5s
timeout: 1s
retries: 5
langgraph-postgres:
image: postgres:16
ports:
- "5433:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- langgraph-data:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U postgres
start_period: 10s
timeout: 1s
retries: 5
interval: 5s
langgraph-api:
image: langgraph-image
ports:
- "8123:8000"
depends_on:
langgraph-redis:
condition: service_healthy
langgraph-postgres:
condition: service_healthy
env_file:
- .env
environment:
REDIS_URI: redis://langgraph-redis:6379
LANGSMITH_API_KEY: <...>
POSTGRES_URI: postgres://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable |
Beta Was this translation helpful? Give feedback.
-
Langgraph Studio and CLI problem: Graph not found Hi all, Happy Xmas! I am stuck for a week trying to make my langgraph project work with Langgraph Visual Studio and haven't found the root cause yet. Module 6 deployment and rag-research-agent-template both work fine. I've compared the langgraph.json, pyproject.toml, and docker-compose.yml but no lucky. The building process finishes successfully. Has anyone faced similar issue? Thanks in advance for any help. Alexandre |
Beta Was this translation helpful? Give feedback.
-
Hello, I was wondering (Haven't started building with the platform yet) if with the LangGraph Platform/Server I can also deploy multiple and separate/different applications so that like there may be two compleately different graphs and endpoints for two completely different business logics. |
Beta Was this translation helpful? Give feedback.
-
What are the limits on the given docker file with langgraph's URIs? I am assuming langgraph's redis and postgres are not supposed to be used for deployment, correct? |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Some advice.
The best way to get this structure and all the necessary files is to install langgraph-cli and run When you are importing stuff from utils into your graph.py you should use in the {
"dependencies": ["."],
"graphs": {
"agent": "./src/your_agent/graph.py:_graph" #path to your graph file and import variable name that holds your compiled graph
},
"env": ".env"
} You need to change some lines in pyproject.toml
The rest you can leave as is. You can run Finally if your curl command fails at the end, try this instead: |
Beta Was this translation helpful? Give feedback.
-
langgraph/how-tos/deploy-self-hosted/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/how-tos/deploy-self-hosted/
Beta Was this translation helpful? Give feedback.
All reactions