Prerequisites

Data persistence requires mapping a host directory for storage and a .env file. The default UID/GID in the container is 1000. Mismatches with the host user UID/GID may cause permission issues.

Pull Image

docker pull mintplexlabs/anythingllm:latest

Run Container

Linux/macOS

export STORAGE_LOCATION=$HOME/anythingllm && \
mkdir -p $STORAGE_LOCATION && \
touch "$STORAGE_LOCATION/.env" && \
docker run -d -p 3001:3001 \
--cap-add SYS_ADMIN \
--name anythingllm \
-v ${STORAGE_LOCATION}:/app/server/storage \
-v ${STORAGE_LOCATION}/.env:/app/server/.env \
-e STORAGE_DIR="/app/server/storage" \
mintplexlabs/anythingllm

Windows (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" -ItemType File}; `
docker run -d -p 3001:3001 `
--cap-add SYS_ADMIN `
--name anythingllm `
-v "$env:STORAGE_LOCATION`:/app/server/storage" `
-v "$env:STORAGE_LOCATION\.env:/app/server/.env" `
-e STORAGE_DIR="/app/server/storage" `
mintplexlabs/anythingllm;

Access the interface at https://allm.loca.zone.

Build from Source

git clone https://github.com/Mintplex-Labs/anything-llm.git anything-llm
cd anything-llm
touch server/storage/anythingllm.db
cd docker/
cp .env.example .env
docker-compose up -d --build