forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
401 B
Python
15 lines
401 B
Python
"""Script to run langchain-server locally using docker-compose."""
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
|
|
def main() -> None:
|
|
"""Run the langchain server locally."""
|
|
p = Path(__file__).absolute().parent / "docker-compose.yaml"
|
|
subprocess.run(["docker-compose", "-f", str(p), "pull"])
|
|
subprocess.run(["docker-compose", "-f", str(p), "up"])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|