Skip to content

Installation

Nido ships as two containers — api and web — plus a data volume. There is no external database service to install, and no account to create before you can try it.

  • Docker with Compose v2 (docker compose, not docker-compose)
  • Node.js 22+ — only if you plan to run the services outside containers
  • Roughly 1 GB of free disk for the images, plus whatever your family’s data needs

You do not need a domain, a public IP, or a TLS certificate to get started. Everything below runs on localhost.

This is the shortest path to a working instance, and it is also the configuration to copy when you move to a server.

Terminal window
git clone https://github.com/stewartshea/nido.git
cd nido
./scripts/init-env.sh # writes .env with freshly generated secrets
docker compose up -d

init-env.sh generates a NIDO_MASTER_KEY and a JWT_SECRET, writes them into a .env at mode 0600, and refuses to overwrite an existing .env. That refusal is on purpose — the master key cannot be rotated once family databases exist, and an accidental overwrite would destroy your only copy.

Then open:

The deploy/docker-compose/ directory holds a production-shaped Compose file that keeps data on a named volume instead of a host bind mount.

Terminal window
cd deploy/docker-compose
cp .env.example .env
# edit .env: set NIDO_MASTER_KEY and JWT_SECRET
./../../scripts/init-env.sh # or paste in: openssl rand -hex 32
docker compose up -d --build

Differences from the development stack:

  • Data lives on the named volume nido-data mounted at /data
  • NIDO_MASTER_KEY and JWT_SECRET are both mandatory, and Compose fails fast if either is unset
  • The API has a /health healthcheck; both services restart: unless-stopped

CI publishes an image pair per release, tagged v<date> (for example v2026.10.26). :latest moves to the newest release, and :main follows unreleased merges. To pull instead of building:

Terminal window
echo "$CR_PAT" | docker login ghcr.io -u stewartshea --password-stdin

Then swap the build: / image: blocks in the Compose file, pinning a release:

api:
image: ghcr.io/stewartshea/nido/api:v2026.10.26
web:
image: ghcr.io/stewartshea/nido/web:v2026.10.26

Pin a release tag rather than :latest — Releases covers what each tag means, and per-commit tags (sha-<commit>) are available when you need to pin to an exact commit or roll back.

Service Port Holds
api 3000 Reads and writes the encrypted databases under /data
web 3001 SvelteKit client; proxies /api to the API service
volume /data registry.db, db/<familyId>.db, blobs/

The databases are not part of any image, so image builds and pulls never carry database state with them. A root .dockerignore also excludes data/, **/*.db*, node_modules/, .git/ and .env* from every build context, so local dev data cannot be baked into an image regardless of which Compose file or docker build invocation you use.

Useful for development; not recommended for a real family’s data.

Terminal window
npm install # installs the api and web workspaces
# terminal 1
cd api && npm run dev
# terminal 2
cd web && npm run dev

npm run db:init creates the registry database. Per-family databases are created on first access.