Skip to content

Running with Docker Compose ​

One Homelander deployment serves one community: one container and one volume, on any Linux server with Docker. That includes a Raspberry Pi 4/5 or another 64-bit ARM board, since the image is built for amd64 and arm64. To run on Railway instead, see deploy-railway.md.

What you need ​

  • Docker with the Compose plugin (docker compose version).
  • A public HTTPS address for the service, for example https://homes.example.com. Residents open login and registration links from Telegram, and PUBLIC_URL must be https (plain http is allowed only for localhost, for trying it out). See HTTPS below.
  • A phone with Telegram: that number becomes the first admin.

1. Create the bot ​

In @BotFather: /newbot, then /setprivacy → Disable. Details: step 1 of deploy-railway.md and Telegram bot setup.

2. Get the files ​

From the newest release on the Releases page, download compose.yaml and env.example (the repository's .env.example) into an empty folder, for example ~/homelander. The release's compose.yaml is pinned to its minor line (for example :0.3), so pull brings fixes only.

bash
cd ~/homelander
cp env.example .env
chmod 600 .env

3. Fill in .env ​

Every variable is explained in the file. At least:

VariableValue
APP_SECREToutput of openssl rand -hex 32
PUBLIC_URLyour HTTPS address, e.g. https://homes.example.com
TELEGRAM_BOT_TOKENthe token from step 1
BOOTSTRAP_ADMIN_PHONEyour phone, e.g. +380…; used only until the first admin exists
TRUST_PROXYtrue when a reverse proxy or tunnel sits in front (the usual case)

Leave DATABASE_PATH commented: the image keeps the database in /data, which is the volume. TELEGRAM_UPDATES=polling (the default) needs no inbound connection from Telegram. To use a webhook instead, set TELEGRAM_UPDATES=webhook and TELEGRAM_WEBHOOK_SECRET.

Never commit .env or paste it anywhere.

4. Start ​

bash
docker compose up -d
docker compose logs -f homelander   # wait for "listening … version=v0.x.y"

http://localhost:8080/healthz should answer {"status":"ok"}.

HTTPS ​

The container speaks plain HTTP on port 8080, so put something in front that terminates HTTPS.

  • A reverse proxy on the same machine, for example Caddy, which gets the certificate by itself. Add a second service to compose.yaml or run it on the host, with a Caddyfile like:

    homes.example.com {
        reverse_proxy localhost:8080
    }

    The domain must point at the machine, and ports 80 and 443 must be reachable.

  • A tunnel, when the machine is behind NAT at home: a tunnel service gives you a public HTTPS name that forwards to localhost:8080, with no open ports. No domain needed: see Without your own domain (Tailscale Funnel).

In both cases set TRUST_PROXY=true, then check the client IP after step 5. If you then publish only through the proxy, change ports to "127.0.0.1:8080:8080".

5. First admin and the community ​

Follow steps 8 and 9 of deploy-railway.md, with your PUBLIC_URL as the domain.

Backups ​

The service backs itself up into the volume (/data/backups) every day. Create an encryption key on the Backups page, then keep copies off the machine: add the BACKUP_S3_* variables of a private S3-compatible bucket to .env (S3 storage), have the bot send them to a private Telegram group (Telegram), or copy the folder elsewhere with your usual tools. Everything about backups and restoring is in backups.md.

The volume homelander-data holds all data. docker compose down keeps it; docker compose down -v deletes it.

Upgrading ​

Read upgrading.md. For a patch it is:

bash
docker compose pull && docker compose up -d

Without Docker ​

Each release also has a single binary per platform: homelander_<version>_linux_amd64.tar.gz, …_linux_arm64.tar.gz and …_darwin_arm64.tar.gz, with the web app built in.

bash
tar -xzf homelander_0.3.1_linux_arm64.tar.gz
cd homelander_0.3.1_linux_arm64
cp /path/to/env.example .env     # fill it in; DATABASE_PATH defaults to ./data/homelander.db
set -a; . ./.env; set +a; ./homelander

For a server, run it as its own user under systemd with EnvironmentFile= pointing at the .env. backups.md shows the paths used there.

Checking the image (optional) ​

upgrading.md shows how to verify the image signature and the release checksums.

Released under the Apache License 2.0.