From f414727587d859246bdc7fb845bbe928b69b39f3 Mon Sep 17 00:00:00 2001 From: Marcos Silva Date: Tue, 11 Jun 2024 20:05:47 -0300 Subject: [PATCH] docs: added tip to data location with docker --- docs/getting-started/index.mdx | 12 ++++++++++++ docs/intro.mdx | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/docs/getting-started/index.mdx b/docs/getting-started/index.mdx index 2b11078..a4e479c 100644 --- a/docs/getting-started/index.mdx +++ b/docs/getting-started/index.mdx @@ -108,6 +108,18 @@ When using Docker to install Open WebUI, make sure to include the `-v open-webui +
+Data Storage in Docker + +This tutorial uses [Docker named volumes](https://docs.docker.com/storage/volumes/) to guarantee the **persistance of your data**. This might make it difficult to know exactly where your data is stored in your machine if this is your first time using Docker. Alternatively, you can replace the volume name with a absolute path on your host machine to link your container data to a folder in your computer using a [bind mount](https://docs.docker.com/storage/bind-mounts/). + +**Example**: change `-v open-webui:/app/backend/data` to `-v /path/to/folder:/app/backend/data` + +Ensure you have the proper access rights to the folder on your host machine. + +Visit the [Docker documentation](https://docs.docker.com/storage/) to understand more about volumes and bind mounts. +
+ ### Installation with Default Configuration - **If Ollama is on your computer**, use this command: diff --git a/docs/intro.mdx b/docs/intro.mdx index 2d5548c..9cf445b 100644 --- a/docs/intro.mdx +++ b/docs/intro.mdx @@ -53,6 +53,18 @@ You cannot switch between single-user mode and multi-account mode after this cha When using Docker to install Open WebUI, make sure to include the `-v open-webui:/app/backend/data` in your Docker command. This step is crucial as it ensures your database is properly mounted and prevents any loss of data. ::: +
+Data Storage in Docker + +This tutorial uses [Docker named volumes](https://docs.docker.com/storage/volumes/) to guarantee the **persistance of your data**. This might make it difficult to know exactly where your data is stored in your machine if this is your first time using Docker. Alternatively, you can replace the volume name with a absolute path on your host machine to link your container data to a folder in your computer using a [bind mount](https://docs.docker.com/storage/bind-mounts/). + +**Example**: change `-v open-webui:/app/backend/data` to `-v /path/to/folder:/app/backend/data` + +Ensure you have the proper access rights to the folder on your host machine. + +Visit the [Docker documentation](https://docs.docker.com/storage/) to understand more about volumes and bind mounts. +
+ ### Installation with Default Configuration - **If Ollama is on your computer**, use this command: