diff --git a/docker/HOW_TO_USE_DOCKER.md b/docker/HOW_TO_USE_DOCKER.md index 5b5a5806..f7601750 100644 --- a/docker/HOW_TO_USE_DOCKER.md +++ b/docker/HOW_TO_USE_DOCKER.md @@ -31,6 +31,14 @@ Use the Dockerized version of AnythingLLM for a much faster and complete startup `docker pull mintplexlabs/anythingllm:master` + + + + + + + + + +
Linux/MacOsWindows Powershell
+ ```shell export STORAGE_LOCATION=$HOME/anythingllm && \ mkdir -p $STORAGE_LOCATION && \ @@ -43,6 +51,25 @@ docker run -d -p 3001:3001 \ mintplexlabs/anythingllm:master ``` + + +```powershell +$env:STORAGE_LOCATION="$HOME\Documents\anythingllm"; +If(!(Test-Path $env:STORAGE_LOCATION)) {New-Item $env:STORAGE_LOCATION -ItemType Directory}; +If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env"}; +docker run -d -p 3001:3001 ` +--cap-add SYS_ADMIN ` +-v "$env:STORAGE_LOCATION`:/app/server/storage" ` +-v "$env:STORAGE_LOCATION\.env:/app/server/.env" ` +-e STORAGE_DIR="/app/server/storage" ` +mintplexlabs/anythingllm:master; +``` + +
+ Go to `http://localhost:3001` and you are now using AnythingLLM! All your data and progress will persist between container rebuilds or pulls from Docker Hub.