Hatoba

The Hatoba guide

Deploy an HTTP app to a machine you choose. Hatoba gives it a private HTTPS address. Add a public domain when you want people outside the network to reach it.

Set up a network · Use the CLI · Configure .hatoba.toml

Set up a network

A hub connects your machines. A runner hosts apps. A client is where you work and deploy. If you already have an invite, start at Join a machine.

Create a hub

On a dedicated Ubuntu 24.04 or 26.04 server (x86-64 or arm64), install the hub. Setup asks for a private domain such as home.lan. Allow the UDP port it prints through your server’s firewall.

curl -fsSL https://hatoba.sh/hub | sh

On the hub, create a single-use invite for each machine you want to join. Invite machines you trust. A joined client can deploy to runners on the network.

sudo hatoba invite

Join a machine

On the Ubuntu machine that will host apps, install the runner. Use a separate machine from the hub.

curl -fsSL https://hatoba.sh/runner | sh

On your development machine, install the client. Ubuntu 24.04 and 26.04 and Apple silicon Macs running macOS 26 are supported for this workflow. Install and start Docker on the development machine to build apps.

curl -fsSL https://hatoba.sh/client | sh

After installing the appropriate role, run these commands on each joining machine. Paste that machine’s invite at the prompt. Check the network and machine names in the status output.

sudo hatoba join
hatoba status

Use the CLI

Deploy a project

On your client, open a project with a Dockerfile. The app must serve HTTP on a non-loopback address inside the container, such as 0.0.0.0:8080. Initialize the project once.

hatoba app init

Hatoba writes .hatoba.toml beside the Dockerfile. It takes the name from the project directory, reads the Dockerfile’s exposed port, and asks for the runner if there are several. Review the target and port, then deploy.

hatoba app deploy
hatoba app status

Open the private URL shown by status from a joined machine. An app named notes on home.lan is available at https://notes.home.lan. Run hatoba app deploy again after changing the code, image, or configuration.

Inspect and manage apps

Run hatoba app commands in the project directory. Use hatoba apps from anywhere to list deployments across your networks.

Manage a network

On the hub, use sudo hatoba status to see the network and sudo hatoba machines to see its members. Use sudo hatoba invite list to inspect unused invites. On a client, sudo hatoba leave home.lan leaves that network.

Configure your app

.hatoba.toml describes one app and the machine that runs it. Start with the file from hatoba app init. Here is a complete private deployment configuration for a project with a Dockerfile.

version = 1

[app]
name = "notes"
target = "worker.home.lan"

[docker]
port = 8080

Use a lowercase DNS label for the app name and the full private name of your runner for the target. Set the port to the one your process listens on inside the container. Hatoba handles HTTPS outside it.

Publish a domain

Add a public domain to serve the same app on the web. Replace the example with a domain you own.

[public]
domains = ["notes.example.com"]

Redeploy. For manually managed DNS, add the A record printed by Hatoba. It points to the hub server’s public IPv4 address. Allow inbound TCP 80 and 443 there. Use hatoba app status to follow DNS and certificate issuance until the domain is ready. The private address still works.

On private requests Hatoba identifies the calling machine in Hatoba-Machine and its network in Hatoba-Network. Your app decides what that caller may do. Public visitors are anonymous to Hatoba.

Keep data and settings

To keep files across deployments, add a named volume inside the existing [docker] section. Set numeric ownership if your image needs it.

volumes = ["data:/var/lib/notes"]
volume_ownership = { data = { uid = 1000, gid = 1000 } }

Use strings for ordinary environment values. For secrets, name a project-local file with one literal NAME=value per line. Exclude it from Git and the Docker build context. Redeploy to apply changes.

[environment]
LOG_LEVEL = "info"

[secrets]
file = ".env"

Connect to another service

Apps run in a sandbox. Declare the private services and external HTTPS hosts an app needs. Omit sections you do not use.

[dependencies]
services = ["inventory"]

[egress]
https = ["api.example.com"]

From inside the app, reach this private dependency at http://inventory.home.lan:51822. Hatoba’s local proxy connects to the service over private HTTPS. For external hosts, use an HTTP client that honors the supplied HTTPS_PROXY value. Egress accepts exact hostnames on port 443.