Replies: 1 comment
-
if you are using the same directory the containers were initialized on, they should be persisting . MongoDB mongodb:
container_name: chat-mongodb
image: mongo
restart: always
volumes:
- ./data-node:/data/db Mounts the host directory Meilisearch meilisearch:
container_name: chat-meilisearch
image: getmeili/meilisearch:v1.7.3
restart: always
volumes:
- ./meili_data_v1.7:/meili_data Mounts the host directory VectorDB (PostgreSQL with pgvector) vectordb:
image: ankane/pgvector:latest
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
restart: always
volumes:
- pgdata2:/var/lib/postgresql/data Uses a Docker named volume Volumes Definitionvolumes:
pgdata2: Defines the named volume ./images:/app/client/public/images: This line mounts the ./images directory from the host machine to the /app/client/public/images directory within the container. This ensures that any images stored by the api service are persisted on the host machine, making them accessible even if the container restarts or is recreated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
LibreChat/deploy-compose.yml
Line 90 in a87d4e0
I'm not an expert on containers, but I think the reason files are lost is because we don't have a named volume that can persist between deployments? This includes avatar images and other file uploads. I'm using the Railway one-click deployment.
Beta Was this translation helpful? Give feedback.
All reactions