README.md

Private Altitude deployment on Umbrel #

For the native Umbrel app with a dashboard icon, use the native package guide. The instructions below are for the separate standalone Docker deployment.

Run Altitude's production web UI, Go API and PostgreSQL on your own Umbrel without publishing source code, using Git hosting, or uploading images to a registry. The bundle contains prebuilt images; the Umbrel server does not need Node or Go, and installation does not pull images.

This is a standalone Docker Compose deployment on the Umbrel host, not an installed Umbrel App Store package. It has its own URL and startup policy, but no Umbrel home-screen tile, Umbrel login gate, managed app updates or Umbrel app backups. Altitude still requires its own account sign-in. Keep it on your private LAN or Tailscale; this configuration does not set up public hosting or TLS. Umbrel's automatic app HTTPS does not cover this standalone port.

Prepared for an Intel/AMD Umbrel running umbrelOS 2.0.1. The default build target is linux/amd64; use PLATFORM=linux/arm64 for ARM hardware. Host-level Docker access is required over SSH. Keep this directory outside Umbrel's managed app-data and app-stores directories.

1. Build on your development computer #

From the Altitude repository root, with Docker Desktop or another Docker engine running:

./deploy/umbrel/build-bundle.sh

Requires Docker Buildx (with cross-platform build support) and Docker API 1.48+ for architecture-specific image export. The script builds the production frontend and API, downloads the target PostgreSQL image, and saves everything into a new directory under .local/. Nothing is published. Image tags are unique per bundle; retain previous bundles for rollback. A partial failed output directory is not installable; remove that directory before retrying.

You can choose an output location and image tag:

ALTITUDE_IMAGE_TAG=private-0.1.0 ./deploy/umbrel/build-bundle.sh .local/umbrel-private-0.1.0

2. Copy the bundle to Umbrel #

Substitute the actual bundle directory printed by the build script:

ssh umbrel@umbrel.local 'mkdir -p ~/altitude-private'
scp -r .local/umbrel-private-0.1.0/. umbrel@umbrel.local:altitude-private/
ssh umbrel@umbrel.local
cd ~/altitude-private

If umbrel.local does not resolve, use the server's LAN or Tailscale IP. Use the same SSH username you normally use for your server.

3. Load and configure #

On Umbrel, confirm the bundle's architecture matches uname -m: linux/amd64 corresponds to x86_64, and linux/arm64 to aarch64.

cat PLATFORM
uname -m
gzip -dc images.tar.gz | sudo docker image load
./configure.sh http://umbrel.local:8787 192.168.68.150 8787
sudo docker compose up -d --wait

The sample bind address is this server's currently reported LAN IP. Replace it if the address changes. Port 8787 must be free. Binding only to the LAN IP avoids listening on every interface. For access exclusively over Tailscale, supply the server's Tailscale address as both URL hostname and bind IP instead. Plain HTTP sends account traffic without TLS: use it on a trusted private network or over Tailscale, or place your own HTTPS reverse proxy in front.

configure.sh generates a random database password and a mode-600 .env, and refuses to replace an existing configuration. It defaults to loopback binding if no bind IP is supplied. It sets the refresh-cookie Secure flag for HTTPS origins; supplying https:// assumes you have already configured TLS termination separately. Do not use HTTPS as the origin for the plain HTTP listener alone.

Open http://umbrel.local:8787, create your Altitude account, and create a workspace. No sample tasks are inserted. Use exactly the configured origin: the API checks browser origins on writes. To also use the LAN IP, edit .env:

ALLOWED_ORIGINS=http://umbrel.local:8787,http://192.168.68.150:8787

Then rerun sudo docker compose up -d --wait. Do not use * for allowed origins. The database and API have no published host ports and use a dedicated internal network. The only published service is the web server. The development Compose stack and its database volumes are separate.

Operations #

Run these commands from ~/altitude-private on Umbrel:

sudo docker compose ps
sudo docker compose logs --tail=100
sudo docker compose restart
sudo docker compose stop
sudo docker compose up -d --wait

Containers restart after Docker/server restarts unless explicitly stopped. Data lives in data/postgres/. Keep .env and that directory across updates. Do not run docker compose down --volumes as an uninstall or reset instruction. Never delete data/ to troubleshoot a startup error.

The API runs migrations automatically and checks database health. Authentication throttling currently sees the web proxy's IP, so the login/registration rate limit is shared by clients of this deployment.

Backups and restore #

Umbrel does not manage backups for this standalone deployment. Create logical PostgreSQL backups rather than copying a live database directory:

mkdir -p backups
chmod 700 backups
(umask 077; sudo ./backup.sh > "backups/altitude-$(date +%Y%m%d-%H%M%S).sql")

Save .env and backups somewhere protected outside the server as well. The database contains accounts, tasks, workspaces and avatars. Test restoration into a separate empty PostgreSQL database before relying on backups. To restore into a fresh deployment, load the images, configure it, start only db, and import a backup before starting the API:

sudo docker compose up -d --wait db
sudo docker compose exec -T db psql --username=altitude --dbname=altitude --set=ON_ERROR_STOP=1 < backups/altitude-BACKUP.sql
sudo docker compose up -d --wait

These restore commands are for an empty database only. For an existing deployment, stop API writes, make another backup and plan the replacement deliberately; do not import over a populated database.

The existing maintenance query can be run periodically to remove expired auth records:

sudo docker compose exec -T db psql -U altitude -d altitude -v ON_ERROR_STOP=1 -c 'DELETE FROM tokens WHERE expires_at < EXTRACT(EPOCH FROM now())::bigint; DELETE FROM auth_attempts WHERE resets_at < EXTRACT(EPOCH FROM now())::bigint;'

Update #

  1. Back up the database and .env.
  2. Build a new bundle locally and copy its files into ~/altitude-private without deleting .env, data/ or backups.
  3. Load images.tar.gz with sudo docker image load as above.
  4. Change only ALTITUDE_IMAGE_TAG in .env to the value in the new IMAGE_TAG file. Do not rerun configure.sh or rotate DB_PASSWORD.
  5. Run sudo docker compose up -d --wait and verify login and your saved lists/tasks.

Changing the environment password does not change an already initialized PostgreSQL password. Keep it stable. Previous image tags can be selected again, but migrations may make older application versions incompatible; use a matching database backup and a fresh restore directory if schema rollback is needed. PostgreSQL major-version upgrades require a separate migration plan.

Verification scope #

The bundle can be tested locally by binding 127.0.0.1 and configuring http://127.0.0.1:8787. Verify account creation, workspace/list/task writes, refresh-session cookies, and persistence after containers are recreated. This is Docker deployment verification; it does not establish Umbrel App Store lifecycle compatibility.