Skip to content

Quick start

github-actions[bot] edited this page Dec 1, 2026 · 18 revisions

Quick start

There are two ways to install Tiedenwerk. From 1.18 the simplest is one file, compose.yml. Until 1.18 is out, use the git install below.

The one-file install (from 1.18)

Needs Tiedenwerk 1.18 or newer. Until 1.18 is released, the download below answers "Not Found", and an older image stops at its first step with "This Tiedenwerk image is older than 1.50 and can't run this compose.yml". Use the git install until then.

You need Docker with Compose v2, nothing else: no git, no Node.js, no setup.sh. The passwords and keys create themselves on the first start.

With a Compose UI (OpenMediaVault, Portainer, Unraid's Compose Manager, Dockge): paste the file into it and press Up. Compose UIs has the steps for each, where your data lives, and how to update and back up.

In a terminal:

mkdir tiedenwerk && cd tiedenwerk
curl -fsSLO https://github.com/svenger87/kinboard/releases/latest/download/compose.yml
docker compose up -d

Or let the installer do the same, and wait until Tiedenwerk answers:

curl -fsSL https://raw.githubusercontent.com/svenger87/kinboard/main/install.sh | bash -s -- --one-file

It asks two things, the port (3001) and whether the data goes into Docker volumes (the default) or a folder, writes them into a .env next to compose.yml in ./tiedenwerk, and prints the address. --port 3001, --data-dir /srv/tiedenwerk-data and --version 1.18.0 answer up front. Until 1.18 --one-file has to be asked for; without it, the installer does the git install.

Then open http://<your server>:3001 and go on with 3. Open the app. Updating is docker compose pull && docker compose up -d in that folder.

The data lives in three Docker volumes, tiedenwerk-db, tiedenwerk-storage and tiedenwerk-config, unless you chose a folder; back up all three (Compose UIs → Backups).

The git install

The way Tiedenwerk has been installed so far, and the default of install.sh until 1.18. The README's one-line installer does all of this for you.

You'll need:

  • Docker with Compose v2 (docker compose ...)
  • Node.js 20+ — setup.sh calls npx web-push generate-vapid-keys to mint the keypair that signs push notifications. If Node.js isn't on PATH, setup completes but push notifications stay disabled (everything else works); install Node.js and run ./setup.sh again later to enable them (not --force, which would make new passwords too).
  • ~2 GB free disk for the images (about 590 MB to download), ~3 GB during a source build, and about 250 MB of memory once it runs. The measured figures are in Self-hosting → Resource needs
  • An interactive terminal for ./setup.sh if you want to be asked for the optional integration keys. Without one (--non-interactive, over SSH, in a script) it simply skips them.
  • A free OpenWeatherMap API key (optional, for the weather widget)

On Windows? Install into your WSL filesystem, not /mnt/c/ — PostgreSQL cannot create its data directory on a Windows drive, and the failure looks like an unrelated "container tiedenwerk-db is unhealthy". See Windows (WSL) as a host first.

1. Clone and bootstrap

git clone https://github.com/svenger87/kinboard.git tiedenwerk
cd tiedenwerk

# Generates webapp/docker/.env with random secrets, VAPID keys, and
# the API keys. No questions about addresses.
./setup.sh

No address to get right

Open Tiedenwerk at whatever address reaches your server: http://localhost:3001 on the same machine, http://<your-server-LAN-IP>:3001 from phones and tablets at home (find the IP with hostname -I), your domain if you put it behind Traefik or a Cloudflare Tunnel. Every device talks to Tiedenwerk at the address it opened it from, so they can all differ.

setup.sh prints the address it expects (this machine's LAN address at home, its public address on a cloud server, localhost under WSL — see Windows (WSL) as a host) and stores it as SITE_URL, which is only used for links Tiedenwerk hands to other apps, like the calendar feed. Change it with ./setup.sh --url <address>. More in Self-hosting → What URL should I use?.

It's idempotent — re-running won't overwrite anything you've set manually. It:

  • generates POSTGRES_PASSWORD, JWT_SECRET, CRON_SECRET
  • mints ANON_KEY + SERVICE_ROLE_KEY (JWTs signed with JWT_SECRET — no need to visit supabase.com)
  • runs npx web-push generate-vapid-keys for VAPID_PUBLIC_KEY / VAPID_PRIVATE_KEY (if Node.js is installed; push notifications stay disabled otherwise)
  • copies webapp/.env.example to webapp/.env.local for dev

2. Bring up the stack

You have two paths. Pick one:

Path A — Pull the pre-built image (recommended, fastest)

Skip the local build entirely. Pulls the multi-arch image (amd64 + arm64) from ghcr.io/svenger87/tiedenwerk:latest. Bring-up takes ~30 sec, runtime needs only ~512 MB RAM, no compiler needed.

cd webapp/docker
./start.sh up

docker-compose.yml runs the published image on its own, so there is no second file to name. When you also want the Traefik HTTPS overlay:

COMPOSE_FILES="-f docker-compose.yml -f docker-compose.traefik.yml" ./start.sh up

Pin a version with TIEDENWERK_TAG=1.15.0 in .env (defaults to :latest). An older .env with KINBOARD_TAG keeps working until 2.0.

start.sh up or plain docker compose up -d both work. The one-shot db-init service aligns PostgREST's login role (authenticator) with POSTGRES_PASSWORD inside the stack before rest starts, so nothing has to be fixed up from the host. start.sh up adds a few checks on top (the data directory, retired containers from older versions, waiting for the migrations) and prints the container status at the end.

Path B — Build from source (if you've patched the code or want a frozen build)

cd webapp/docker
COMPOSE_FILES="-f docker-compose.yml -f docker-compose.build.yml" ./start.sh up

docker-compose.build.yml builds the webapp from this checkout and tags it kinboard-webapp:local, so it is never confused with a pulled image. Build from a clean checkout: a webapp/.env.local on the build machine ends up baked into the bundle.

The first build takes ~5–10 min and peaks at ~4 GB RAM during type-check + static-page generation. On a 4 GB VM you'll need swap (fallocate -l 8G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile) or you'll hit OOM. Subsequent up calls reuse the cached image — fast.

Both paths

The webapp container applies any new database migrations every time it starts, and start.sh up waits for that to finish. The other commands work either way:

./start.sh status   # check container health
./start.sh logs     # tail logs from all services
./start.sh down     # stop everything
./start.sh restart  # pull (Path A) or rebuild (Path B) the webapp, then restart it + cron
./start.sh migrate  # apply pending migrations by hand (rarely needed; the webapp does it on start)

No address is baked into the image. The browser always talks to Tiedenwerk at the address the page came from, and the anon key is read from webapp/docker/.env at container start, so the same image works for any URL — no rebuild needed when you change SITE_URL later.

3. Open the app

http://localhost:3001

You'll land on /join with a "Welcome — let's set things up" card because the database is empty. Pick a family name, give this device a name, and create the family. You'll get a 6-character join code — write it down. Other devices use it via the same /join page.

A short setup follows. Every step can be skipped, and everything in it is in Settings later:

  1. Set up this install (only for the first family on a new install): the address Tiedenwerk puts in links it hands out, such as the calendar feed, proposed from the address you opened it at, and where your data lives. SITE_URL in .env still wins when it is set.
  2. Notifications (the same): push works already; optionally an email address that push services may write to. VAPID_SUBJECT in .env still wins when it is set.
  3. Language, time zone and where you live (for holidays).
  4. Your family members, a calendar (with the Google Calendar client's fields when the server has none), Home Assistant and the weather (with the OpenWeatherMap key's field when the server has none).
  5. A settings PIN, so a wall screen's Settings stay shut until a grown-up enters it.

The first two are under Settings → This install afterwards, visible only to the family that runs the install (INSTANCE_ADMIN_FAMILY_ID, or the first and only family). An install that already had a family before this setup existed never shows them.

Other devices in the house open http://<this machine's address>:3001. Plain HTTP is fine for nearly everything; push notifications, the barcode scanner's live camera and installing the app need an https:// address, and HTTPS shows the ways to get one, shortest first.

4. Configure integrations

Open the menu → Settings and walk through the integrations you care about. Each is documented separately:

What runs on your machine

Container Port What
tiedenwerk-webapp 3001 Next.js dashboard — and everything the browser talks to: the database API at /rest/v1, uploaded files at /storage/v1/…, and live updates
tiedenwerk-db 5432 PostgreSQL 15 (the supabase/postgres image)
tiedenwerk-db-init — One-shot: aligns PostgREST's login password, then exits
tiedenwerk-rest (internal) PostgREST, reached through the webapp
tiedenwerk-go2rtc 1984 (localhost only), 8555/udp Camera RTSP-to-WebRTC bridge
tiedenwerk-cron (internal) Ofelia scheduler for /api/cron/*

If your install is older: an install from before the rename to Tiedenwerk keeps its kinboard-* containers (kinboard-db, kinboard-webapp, …), and that's fine — nothing needs renaming, now or on any update. Wherever this wiki says tiedenwerk-…, use kinboard-…. docker ps shows which you have.

One address, one port: the family only ever needs WEBAPP_PORT (3001).

In a git install, bind paths default to ./data/ (relative to webapp/docker/): db/ for Postgres, storage/ for uploaded files. Override with DATA_DIR=/some/abs/path in .env for NAS or external storage.

A one-file install (from 1.18) runs the same containers with three differences: there is no kinboard-cron, because the webapp runs the scheduled jobs itself; a second one-shot, tiedenwerk-init, creates the secrets and then exits; and only 3001 and 8555/udp are published, not the database's 5432 or go2rtc's 1984. Its data is in the volumes tiedenwerk-db, tiedenwerk-storage and tiedenwerk-config, or the folders you named. A one-file install from before the rename has kinboard-* volumes and containers; the current file moves them to the new names on its first start (Compose UIs).

Adding more devices

Any device on the network can join the family you just created: browse to http://<host>:<port>/join, tap Join family, and enter the 6-character code (shown at Settings → top of the page on any already-connected device). Give the new device a name and tap Join — there's no hard cap on devices per family, and everything (kitchen kiosk, phones, tablets, a dev laptop) sees the same state, kept in sync by live updates from the server.

Once a device has joined, it keeps a random device id of its own, so on future visits /join offers a one-tap "Welcome back" rejoin instead of asking for the code again. If the browser's site data is cleared, that id is gone and the device joins with the code once more — see how device recognition works.

Don't share the join code over the public internet. Anyone with the code + the URL can join your family. The model assumes a trusted LAN — see Security-and-Threat-Model.

Leaving or switching a family

A device belongs to exactly one family at a time. Settings → Leave family deletes the device's row from the family's devices table (the family itself stays) and clears local browser state (cookies + localStorage), landing you back on /join. To switch families, leave the current one and join the new one with its code.

If the device you're leaving is the last one in the family, the family's data stays in the database — any other device with the join code can re-enter later and pick up where you left off.

To wipe a fresh-install state entirely during development:

docker exec -i tiedenwerk-db psql -U postgres -d postgres <<'EOF'
TRUNCATE families CASCADE;
EOF

CASCADE removes everything linked: devices, people, calendars, events, todos, shopping_items, etc. The schema and the demo seed (if applied) are unaffected.

Putting it on the wall

When you're ready to mount a touchscreen, see:

Next

  • Self-hosting — production deployment with Traefik, backups, updates

Clone this wiki locally