From 294de475c1ba424b9750fb54f2da3151efcc905d Mon Sep 17 00:00:00 2001 From: Kuba Date: Wed, 8 Jan 2025 11:43:14 -0500 Subject: [PATCH] chore: Use expose instead of ports in docker compose example (#5592) This makes the postgres instance only reachable from the langflow container and allows it to spin up even if another process (e.g. another postgres instance) is running on the host and binds to the same port. --- docker_example/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker_example/docker-compose.yml b/docker_example/docker-compose.yml index 4dda514422..ea9951bffc 100644 --- a/docker_example/docker-compose.yml +++ b/docker_example/docker-compose.yml @@ -20,8 +20,8 @@ services: POSTGRES_USER: langflow POSTGRES_PASSWORD: langflow POSTGRES_DB: langflow - ports: - - "5432:5432" + expose: + - 5432 volumes: - langflow-postgres:/var/lib/postgresql/data