Self-host openHAB with Levelrail

A vendor neutral home automation hub that connects thousands of smart devices and services.

  • Authoropenhab
  • LicenceEPL-2.0
  • Memory1 GiB
  • Services1

How to self-host openHAB

  1. Pull the images

    One image is pulled on your server.

    Show images
    • openhab/openhab:5.2.4
  2. Create the app

    One service starts in a single Compose app, with 3 named volume mounts for your data, on port 8080.

  3. Fill in the secrets

    2 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

After the first start

  • Create the admin account on first visit, then install bindings from the add-on store.

openHAB requirements

Memory
About 1 GiB
Architectures
amd64 unknown, arm64 unknown
Ports
8080
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
EPL-2.0, copyleft license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then openHAB. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the openHAB docs page.

Deploy openHAB your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy openHAB from the CLI

levelrail-cli templates deploy openhab --name my-openhab

Deploy openHAB with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/openhab/deploy

openHAB configuration

openHAB services

ServiceImagePortsVolumes
openhab openhab/openhab:5.2.4 8080 conf -> /openhab/confuserdata -> /openhab/userdataaddons -> /openhab/addons

openHAB environment variables

VariableServiceValue
CRYPTO_POLICY openhab Preset by the template
OPENHAB_HTTP_PORT openhab Preset by the template

Ports and volumes

Ports
8080
Volumes
3 named mounts: conf -> /openhab/conf, userdata -> /openhab/userdata, addons -> /openhab/addons

openHAB FAQ

How much memory does openHAB need?

The catalog lists about 1 GiB of memory for openHAB.

Does openHAB run on arm64?

For openHAB, arm64 support is not confirmed; amd64 is unknown.

What licence is openHAB under?

openHAB is licensed under EPL-2.0, which is copyleft, so changes you distribute must be shared under the same terms.

Does openHAB need configuration before it starts?

No. The template fills in its own defaults.

Which ports does openHAB use?

openHAB listens on port 8080 inside the stack.

Where does openHAB keep its data?

In named volumes: conf mounted at /openhab/conf, userdata mounted at /openhab/userdata and addons mounted at /openhab/addons.

Can I deploy openHAB on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for openHAB, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image openhab/openhab:5.2.4 is what you deploy there.

levelrail-cli templates deploy openhab --name my-openhab