AnythingLLM Installation Cloud Docker

Run AnythingLLM on Cloud using Docker

Running AnythingLLM on a cloud service is the best way to run a private multi-user instance of AnythingLLM with full control.

💡

Easy Cloud Deployment

AnythingLLM offers easily integrated one-click docker deployment templates with Railway (opens in a new tab) and Render (opens in a new tab).

This is the easiest way to self-host a cloud server version of AnythingLLM

ProviderMinimum Instance size
Amazon Web Servicest3.small
Google Cloud Providere2-standard-2
Azure CloudB2ps v2

💡

AnythingLLM offers community-maintained deployment templates for cloud providers https://github.com/Mintplex-Labs/anything-llm/tree/master/cloud-deployments (opens in a new tab)

Once you are prepared to run AnythingLLM on your server the process is quite simple.

You should provision a folder somewhere on the host machine so that you can re-pull the latest versions of AnythingLLM and persist data between container rebuilds.

⚠️

BACKWARDS COMPATIBILITY

The Mintplex Labs team takes great care to ensure AnythingLLM is always backward compatible.

In the event this changes you will be alerted via code, deployment, or our regular communication channels on social, Discord, and email.

  1. # Assuming that you want to store app data in a folder at /var/lib/anythingllm
  2. # Pull in the latest image
  3. docker pull mintplexlabs/anythingllm:master
  4. export STORAGE_LOCATION="/var/lib/anythingllm" && \
  5. mkdir -p $STORAGE_LOCATION && \
  6. touch "$STORAGE_LOCATION/.env" && \
  7. docker run -d -p 3001:3001 \ # expose on port 3001 (can be any host port)
  8. --cap-add SYS_ADMIN \ # So you can scrape website URLs for information!
  9. -v ${STORAGE_LOCATION}:/app/server/storage \
  10. -v ${STORAGE_LOCATION}/.env:/app/server/.env \
  11. -e STORAGE_DIR="/app/server/storage" \
  12. mintplexlabs/anythingllm:master
  13. # visit http://localhost:3001 to use AnythingLLM!

Done! You are using AnythingLLM!