-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is is possible to fully run on docker compose? #221
Comments
@HeMuling FROM langchain/langgraphjs-api:20
ADD . /deps/open-canvas
RUN cd /deps/open-canvas && yarn install --frozen-lockfile
ENV LANGSERVE_GRAPHS='{
"agent": "./src/agent/open-canvas/index.ts:graph",
"reflection": "./src/agent/reflection/index.ts:graph",
"thread_title": "./src/agent/thread-title/index.ts:graph"
}'
WORKDIR /deps/open-canvas
RUN (test ! -f /api/langgraph_api/js/build.mts && echo "Prebuild script not found, skipping") || tsx /api/langgraph_api/js/build.mts This Dockerfile is generated from the Docker Compose Filevolumes:
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: open-canvas:latest
ports:
- "57318: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: YOUR_API_KEY
POSTGRES_URI: postgres://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable |
No need to write the Dockerfile on your own. Just use langgraph build or langgraph dockerfile |
I tried:
and for
dockerfile
:But it always fail with log:
so I'm wondering if it is possible to run on docker compose?
The text was updated successfully, but these errors were encountered: