A private cloud VM gives you a place to keep project workspaces that you can reach from your own computer. On Ubuntu, Docker runs AnythingLLM and keeps its workspace data on the VM's disk.
AnythingLLM serves its web interface on TCP port 3001. Anyone who can reach that port can open the first-run screen, so the VM needs a private network path from your computer and an inbound cloud firewall rule limited to your trusted client or VPN subnet.
Start with SSH access to an Ubuntu VM running Docker Engine from Docker's APT repository. Docker needs to start at boot, and your SSH account needs sudo privileges. The AnythingLLM cloud installation docs cover VM sizing. Use a VM disk that survives reboots. If you plan to keep the data after replacing the VM, make a separate AnythingLLM backup.
Steps to deploy AnythingLLM on a cloud VM:
- Connect to the Ubuntu VM over SSH from your computer.
ssh ubuntu@192.0.2.10
ubuntuis the example login, and192.0.2.10stands for your VM's private IPv4 address. The same address is used for the Docker port and browser URL. The Docker commands usesudobecause a standard Docker daemon can control the VM as root. - Create a fresh private directory for AnythingLLM data.
mkdir -m 700 "$HOME/anythingllm"
If the directory already exists, stop and check which instance owns it before using it. The application database and uploaded files will live here.
- Create the empty environment file for AnythingLLM.
touch "$HOME/anythingllm/.env"
- Limit the environment file to its owner.
chmod 600 "$HOME/anythingllm/.env"
The file can later contain provider settings and credentials.
- Assign the storage directory and environment file to AnythingLLM's container user.
sudo chown 1000:1000 "$HOME/anythingllm" "$HOME/anythingllm/.env"
The image runs with UID and GID
1000. If your SSH account has a different UID, it needssudoto inspect the private files afterward. - Set the private address that Docker will bind on the VM.
VM_PRIVATE_IP=192.0.2.10
This must be an IPv4 address assigned to the VM itself, such as the private address listed in your cloud console. A public address translated by the cloud provider may be absent from the VM's network interface.
- Start AnythingLLM with the VM storage mounted.
Starting the container makes the first-run screen available on the VM's private address. The cloud firewall or private network must already restrict TCP port
3001to your trusted client or VPN subnet. Docker's published ports can bypass UFW. Before allowing access from an untrusted network, configure password protection or individual user accounts and HTTPS with Nginx. Direct access to port3001stays limited to the trusted network.sudo docker run -d --name anythingllm --restart unless-stopped \ -p "${VM_PRIVATE_IP}:3001:3001" \ --mount "type=bind,src=$HOME/anythingllm,dst=/app/server/storage" \ --mount "type=bind,src=$HOME/anythingllm/.env,dst=/app/server/.env" \ -e STORAGE_DIR=/app/server/storage \ -e DISABLE_TELEMETRY=true \ mintplexlabs/anythingllm@sha256:3e2b7bc8eb0f73a130fc575f1372bd4e7189e399a63c037497fc183c141fc0aeDocker pulls the pinned AnythingLLM 1.20.0 release from Mintplex Labs for AMD64 or ARM64. The two bind mounts keep workspace data and environment settings on the VM. The container runs in the background with telemetry disabled.
unless-stoppedbrings it back when Docker starts, provided you did not manually stop it. - Check AnythingLLM's running status and published port.
sudo docker ps --filter 'name=^/anythingllm$' \ --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'
The
STATUScolumn should sayUp, andPORTSshould start with your VM's private address. The web app can take a moment to start after Docker reports the container as up. - Open
http://192.0.2.10:3001in your computer's browser.
The URL can use the VM's private IP address or a DNS name that resolves to it on your private network. A timeout can mean that your computer lacks a route to the VM or that the cloud firewall denies the connection.
- Click Get Started on the AnythingLLM welcome screen.

- Select Ollama under LLM Preference.
The Search LLM providers field can narrow the list. Ollama is a local provider that requires no cloud API key.
- Enter
http://172.17.0.1:11434in Ollama Base URL.
The field is under Show advanced settings if the settings are collapsed. This URL uses the standard Docker bridge gateway on Linux. If your bridge has a different gateway address, use that address in the URL.
- Click the right arrow to continue from LLM Preference.
You can save an empty workspace before you have a model. Chat requires a working Ollama setup or another model provider. Enter provider credentials only over HTTPS.
- Select Just me on the User Setup screen.

- Choose No for the password on an instance that only you can reach.
Without a password, anyone who can reach port
3001can use the instance. If other people can reach it, set up HTTPS and account protection before using the instance.
- Click the right arrow to continue from User Setup.

- Click the right arrow on Data Handling & Privacy.
The page shows the provider and storage settings along with the telemetry toggle.
- Click Skip Survey below the optional survey form.

- Create an empty workspace named Project Atlas by following the AnythingLLM workspace creation steps.
A workspace can be saved without sending a chat message or uploading documents.
- Confirm that Project Atlas appears in the sidebar.

- Restart the AnythingLLM container when the instance is idle.
The app is briefly unavailable while its container restarts.
sudo docker restart anythingllm
- Confirm that Project Atlas reappears in the sidebar at the private URL in a fresh browser session after the container restarts.

- Reboot the VM during an available maintenance window.
Rebooting disconnects SSH and interrupts all services on the VM until it comes back.
sudo reboot
- Verify Project Atlas in the AnythingLLM sidebar at the same private URL in a fresh browser session after the VM returns.
The same private URL should load without starting the container by hand. The saved workspace confirms the app can still read data from the VM's disk.