Skip to content

Commit

Permalink
ci: bump docker compose, use single queue worker (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra authored Apr 10, 2024
2 parents de1435c + 56bf6b9 commit 9cdc0b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/langsmith/cli/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Don't change this file. Instead, copy it to .env and change the values there. The default values will work out of the box as long as you provide your license key.
_LANGSMITH_IMAGE_VERSION=0.2.3
_LANGSMITH_IMAGE_VERSION=0.2.17
LANGSMITH_LICENSE_KEY=your-license-key # Change to your Langsmith license key
OPENAI_API_KEY=your-openai-api-key # Needed for Online Evals and Magic Query features
AUTH_TYPE=none # Set to oauth if you want to use OAuth2.0
Expand Down
20 changes: 13 additions & 7 deletions python/langsmith/cli/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: "4"
services:
langchain-playground:
image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.1.19}
image: langchain/langsmith-playground:${_LANGSMITH_IMAGE_VERSION:-0.2.17}
ports:
- 3001:3001
langchain-frontend:
image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.1.19}
image: langchain/langsmith-frontend:${_LANGSMITH_IMAGE_VERSION:-0.2.17}
environment:
- VITE_BACKEND_AUTH_TYPE=${AUTH_TYPE:-none}
- VITE_OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
Expand All @@ -16,7 +16,7 @@ services:
- langchain-backend
- langchain-playground
langchain-backend:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.1.19}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.2.17}
environment:
- PORT=1984
- LANGCHAIN_ENV=local_docker
Expand All @@ -29,6 +29,9 @@ services:
- API_KEY_SALT=${API_KEY_SALT}
- POSTGRES_DATABASE_URI=${POSTGRES_DATABASE_URI:-postgres:postgres@langchain-db:5432/postgres}
- REDIS_DATABASE_URI=${REDIS_DATABASE_URI:-redis://langchain-redis:6379}
- INGESTION_QUEUE=default
- ADHOC_QUEUE=default
- RUN_RULES_QUEUE=default
ports:
- 1984:1984
depends_on:
Expand All @@ -42,7 +45,7 @@ services:
condition: service_completed_successfully
restart: always
langchain-queue:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.1.19}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.2.17}
environment:
- PORT=1984
- LANGCHAIN_ENV=local_docker
Expand All @@ -57,9 +60,12 @@ services:
- REDIS_DATABASE_URI=${REDIS_DATABASE_URI:-redis://langchain-redis:6379}
- MAX_ASYNC_JOBS_PER_WORKER=${MAX_ASYNC_JOBS_PER_WORKER:-10}
- ASYNCPG_POOL_MAX_SIZE=${ASYNCPG_POOL_MAX_SIZE:-3}
- INGESTION_QUEUE=default
- ADHOC_QUEUE=default
- RUN_RULES_QUEUE=default
command:
- "saq"
- "app.async_worker.settings"
- "app.workers.queues.single_queue_worker.settings"
- "--quiet"
depends_on:
langchain-db:
Expand Down Expand Up @@ -125,7 +131,7 @@ services:
timeout: 2s
retries: 30
clickhouse-setup:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.1.19}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.2.17}
depends_on:
langchain-clickhouse:
condition: service_healthy
Expand All @@ -148,7 +154,7 @@ services:
"migrate -source file://clickhouse/migrations -database 'clickhouse://langchain-clickhouse:9000?username=default&password=password&database=default&x-multi-statement=true&x-migrations-table-engine=MergeTree' up",
]
postgres-setup:
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.1.19}
image: langchain/langsmith-backend:${_LANGSMITH_IMAGE_VERSION:-0.2.17}
depends_on:
langchain-db:
condition: service_healthy
Expand Down

0 comments on commit 9cdc0b4

Please sign in to comment.