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:
parent
723a31051e
commit
294de475c1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue