Step 1 — Install Docker Engine on Ubuntu
Use Docker’s official Ubuntu installation instructions for your supported release and CPU architecture. The following repository installation is intended for a fresh server. Check existing containers before removing conflicting distribution packages; removing a container runtime can interrupt other services.
# Fresh server only: review before removing existing container tooling. sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc docker-buildx podman-docker containerd runc 2>/dev/null | cut -f1)
Add the signing key and official APT repository:
sudo apt update
sudo apt install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo tee /etc/apt/sources.list.d/docker.sources > /dev/null <<EOF_DOCKER
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF_DOCKER
sudo apt updateInstall the engine, CLI, build plugin, and Compose plugin, then verify the daemon:
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo systemctl enable --now docker sudo docker run --rm hello-world sudo docker compose version
If you want to run Docker without sudo, add your SSH user to the Docker group. This grants root-level privileges on the host. Log out and back in before continuing; otherwise keep using sudo docker.
sudo usermod -aG docker "$USER" # Log out, reconnect with SSH, then verify: docker version docker compose version
127.0.0.1 and expose only the authenticated HTTPS proxy. An ufw rule alone is not a substitute for checking Docker’s published addresses.Step 2 — Run Vane with Docker Compose
The official full image bundles SearXNG. Generate a complete Compose file below and save it as compose.yaml in a dedicated server directory. The preview also works without JavaScript. Select a tested tag or digest before depending on the instance; latest can change between pulls.
services:
vane:
image: itzcrazykns1337/vane:latest
ports:
- "127.0.0.1:3000:3000"
volumes:
- vane-data:/home/vane/data
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
vane-data:
Create a working directory, copy the generated file there, and run the startup and diagnostic commands from that directory:
mkdir -p ~/vane cd ~/vane # Save or upload the generated file here as compose.yaml.
docker compose config --quiet docker compose up -d docker compose ps docker compose logs --tail=100 vane
For a quick evaluation, you can use this alternative based on the upstream Docker command:
docker run -d --name vane -p 127.0.0.1:3000:3000 -v vane-data:/home/vane/data itzcrazykns1337/vane:latest
We deliberately replace the upstream public port binding with 127.0.0.1:3000:3000 so setup is private. Choose either Compose or the single-container command. They cannot both use port 3000. The quick-start command uses volume vane-data; Compose normally prefixes its volume name with the project name. Do not switch between them and assume they share the same data.
Step 3 — Set up your model (Ollama or cloud)
Run the following command on your own computer, replacing the SSH user and server address. If the local port is occupied, choose another local port. Keep the destination aligned with the port generated in Step 2.
ssh -N -L 3000:127.0.0.1:3000 user@server
Open http://localhost:3000. Complete Vane’s setup screen, then use Settings / Connections to select your provider and models. The exact labels can vary by version. Configure both chat and embedding models where requested. Enter cloud API credentials only in your privately accessed Vane settings, not in the Compose file or this website’s configuration builder.
Cloud models
Choose a supported provider and a model that your account can actually call. Check the provider’s usage and spending controls first. An API key authenticates Vane’s outbound calls to that provider; it does not protect incoming requests to your Vane server. Start with one small query and inspect usage before enabling longer research runs.
Ollama on the host or a separate machine
Inside the Vane container, localhost means that container. On Linux, use http://<host-private-IP>:11434, or the private address of a different Ollama machine. Docker Desktop provides http://host.docker.internal:11434. Ollama must listen on a reachable interface and the network must allow the connection. Follow Ollama’s networking instructions; keep port 11434 restricted to trusted hosts.
After replacing the private address below, test the model-list endpoint from inside the Vane container. This checks connectivity without generating an answer.
docker compose exec vane node -e 'fetch("http://192.168.1.10:11434/api/tags").then(async r => { if (!r.ok) throw Error("HTTP " + r.status); const d = await r.json(); console.log((d.models || []).map(m => m.name)); }).catch(e => { console.error(e.message); process.exit(1); })'If the host test succeeds but the container test fails, investigate interface binding, routing, and firewall rules. Copy the exact returned model name into your connection configuration rather than guessing a name from a tutorial.
Step 4 — Add HTTPS and restrict access
For this example, install Caddy on the Ubuntu host using its official package instructions. Point your own subdomain to the server, and allow ports 80 and 443 to reach Caddy. A Caddy container has a different loopback namespace, so the host-based configuration below should not be copied unchanged into a containerized proxy.
Generate a password hash interactively. Keep the plaintext password in your password manager:
caddy hash-password
Replace the domain and hash placeholder in /etc/caddy/Caddyfile. This protects every path, including settings and APIs. flush_interval -1 makes responses flush immediately; see Caddy’s streaming behavior. A proxy that buffers responses can make generation appear stuck.
search.example.com {
basic_auth {
operator REPLACE_WITH_CADDY_PASSWORD_HASH
}
reverse_proxy 127.0.0.1:3000 {
flush_interval -1
}
}sudo caddy validate --config /etc/caddy/Caddyfile sudo systemctl reload caddy
Cloudflare Access is another option if you enforce it at the origin as well and prevent direct-IP bypass. Whichever boundary you choose, verify both HTML and API requests. Do not exempt API paths just to get an embedded frame working.
Step 5 — Verify before you share it
Run these checks against your own private installation. They validate different parts of the system; a healthy homepage alone does not prove that search, persistence, or access control works.
- Ask one real web-search question and open the citations. Check that the answer arrives progressively through the proxy.
- Restart the application and confirm that model settings and a test conversation persist.
- From outside your server, confirm that requests without credentials cannot access either the homepage or API routes. Port 3000 must remain inaccessible publicly.
- Set provider budgets where available, inspect recorded usage, and use server-side limits before offering an anonymous service.
- Back up the data volume and verify a restore in a separate, private instance before upgrading.
- Upload a small, non-sensitive PDF to your own instance and ask a question that requires its contents. Verify upload persistence separately; our public demo deliberately disables uploads.
- Inspect container logs for SearXNG startup, connection, or search errors after the query.
docker compose restart vane docker compose ps docker compose logs --tail=100 vane docker stats --no-stream docker system df df -h
Run the following from a separate machine after replacing the domain. With the Caddy Basic Auth configuration above, both status codes should be 401:
curl -sS -o /dev/null -w '%{http_code}\n' https://search.example.com/
curl -sS -o /dev/null -w '%{http_code}\n' https://search.example.com/api/configBackup and upgrade checklist
Record the running image ID and repository digest, the actual mounted volume name, and the Compose file. Stop application writes before taking a consistent data backup, then restart the service. Verify the archive can restore to a separate test volume. Uploaded files may use a separate directory in your release; inspect mounts and confirm coverage before deleting or replacing any container.
docker compose images
docker inspect "$(docker compose ps -q vane)" --format '{{json .Mounts}}'
docker image inspect "$(docker compose images -q vane)" --format '{{json .RepoDigests}}'Only after the backup and restore check passes, update the Compose image to the new version or digest and run:
docker compose pull vane docker compose up -d vane docker compose logs --tail=100 vane
For rollback, restore the previous image reference and the matching pre-upgrade data snapshot, preferably into a separate volume first. A database migrated by a newer version may not work with an older image. Do not run docker compose down -v during an upgrade: it removes persistent volumes.
Common errors
Search stays on a loading spinner
Check logs and browser network responses before assigning a cause. The full image should start its bundled SearXNG. For a slim deployment, verify its search-service URL is reachable from Vane and enable JSON output and the Wolfram Alpha engine as required by the upstream README. Provider timeouts, a broken proxy stream, and blocked search engines can also cause a stalled response.
docker compose logs --tail=200 vane
Ollama cannot be selected or reached
Recheck the URL from Step 3. A host service at localhost:11434 is not reachable at that same address from a different container. Use the host’s private address, confirm its listener and network rules, and verify that the requested model is installed.
/api/search returns HTTP 500
Issue #1170 describes a v1.12.2 failure when nested model objects are missing. Inspect your installed route and its matching API documentation: chatModel and embeddingModel each need a valid providerId and model key in that version. A top-level model name is not interchangeable with this object. Other 500 responses can have different causes; inspect sanitized logs before changing credentials.
Docker images fill the disk
Issue #1121 is a user report about image growth, not a universal size specification. Check image layers, build cache, persistent volumes, and backups separately. Preserve your rollback image and data before removing anything; never prune volumes indiscriminately.
docker system df -v df -h
Frequently asked questions
Which Ollama URL should I use in Docker?
For the Ubuntu setup here, use a private host address reachable from the container, with port 11434. Test the /api/tags endpoint from inside Vane before saving the model connection. If Ollama is on another machine, use that machine’s private address and restrict access to trusted clients.
When should I choose the slim image?
Choose it when you already operate a compatible SearXNG service and want to manage it independently. Configure the service URL, JSON output, and required engine before testing. The full image is the simpler starting point for this guide because it already includes the search service.
Does HTTPS make a shared Vane instance safe to publish?
HTTPS encrypts the connection. The authentication layer decides who may enter. Application ownership checks determine which history or settings they may access. These are separate responsibilities. For a small private installation, protect all routes and share access only with people you trust with the same instance.
Can I just pull latest to upgrade?
Record the current digest and back up the actual data volumes first. Read the release notes, test restoration, and keep the previous image available. Pulling a new tag alone does not recreate the running container, and reverting only the image may not undo database changes introduced by the upgrade.
References checked November 23, 2026: Vane README, release notes, Docker for Ubuntu, and Caddy Basic Auth. Use the Docker Compose setup above for a fresh private instance, or revisit the Vane deployment guide verification checklist before sharing an existing one.