mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 12:18:24 +00:00
Rm langchain server (#12305)
This commit is contained in:
parent
3f16acc538
commit
988f6d9912
@ -1,29 +0,0 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
|
||||||
langchain-frontend:
|
|
||||||
image: notlangchain/langchainplus-frontend:latest
|
|
||||||
ports:
|
|
||||||
- 4173:4173
|
|
||||||
environment:
|
|
||||||
- BACKEND_URL=http://langchain-backend:8000
|
|
||||||
- PUBLIC_BASE_URL=http://localhost:8000
|
|
||||||
- PUBLIC_DEV_MODE=true
|
|
||||||
depends_on:
|
|
||||||
- langchain-backend
|
|
||||||
langchain-backend:
|
|
||||||
image: notlangchain/langchainplus:latest
|
|
||||||
environment:
|
|
||||||
- PORT=8000
|
|
||||||
- LANGCHAIN_ENV=local
|
|
||||||
ports:
|
|
||||||
- 8000:8000
|
|
||||||
depends_on:
|
|
||||||
- langchain-db
|
|
||||||
langchain-db:
|
|
||||||
image: postgres:14.1
|
|
||||||
environment:
|
|
||||||
- POSTGRES_PASSWORD=postgres
|
|
||||||
- POSTGRES_USER=postgres
|
|
||||||
- POSTGRES_DB=postgres
|
|
||||||
expose:
|
|
||||||
- 5432
|
|
@ -1,18 +0,0 @@
|
|||||||
"""Script to run langchain-server locally using docker-compose."""
|
|
||||||
import subprocess
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
from langsmith.cli.main import get_docker_compose_command
|
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
|
||||||
"""Run the langchain server locally."""
|
|
||||||
p = Path(__file__).absolute().parent / "docker-compose.yaml"
|
|
||||||
|
|
||||||
docker_compose_command = get_docker_compose_command()
|
|
||||||
subprocess.run([*docker_compose_command, "-f", str(p), "pull"])
|
|
||||||
subprocess.run([*docker_compose_command, "-f", str(p), "up"])
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
Loading…
Reference in New Issue
Block a user