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.
This commit is contained in:
Kuba 2025-01-08 11:43:14 -05:00 committed by GitHub
commit 294de475c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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