From c8b70e1c6a29ac8d90ee729c4c1f4abcaad1b5a6 Mon Sep 17 00:00:00 2001 From: Sami Liedes Date: Tue, 25 Apr 2023 08:19:23 +0300 Subject: [PATCH] langchain-server: Do not expose postgresql port to host (#3431) Apart from being unnecessary, postgresql is run on its default port, which means that the langchain-server will fail to start if there is already a postgresql server running on the host. This is obviously less than ideal. (Yeah, I don't understand why "expose" is the syntax that does not expose the ports to the host...) Tested by running langchain-server and trying out debugging on a host that already has postgresql bound to the port 5432. Co-authored-by: Sami Liedes --- langchain/docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/docker-compose.yaml b/langchain/docker-compose.yaml index d1558cdb..27b43493 100644 --- a/langchain/docker-compose.yaml +++ b/langchain/docker-compose.yaml @@ -25,5 +25,5 @@ services: - POSTGRES_PASSWORD=postgres - POSTGRES_USER=postgres - POSTGRES_DB=postgres - ports: + expose: - 5432:5432