Persist Volume After Stop (#4763)

Previously, the data would be removed after shutting down the server.
This mounts a db volume that isn't erased between calls
This commit is contained in:
Zander Chase 2023-05-16 13:10:13 +00:00 committed by GitHub
parent a7af32c274
commit fc0a3c8500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,5 +42,9 @@ services:
- POSTGRES_PASSWORD=postgres - POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres - POSTGRES_USER=postgres
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes:
- langchain-db-data:/var/lib/postgresql/data
ports: ports:
- 5433:5432 - 5433:5432
volumes:
langchain-db-data: