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.
Requirements
Section titled “Requirements”- Docker with Compose v2 (
docker compose, notdocker-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.
Local development
Section titled “Local development”This is the shortest path to a working instance, and it is also the configuration to copy when you move to a server.
git clone https://github.com/stewartshea/nido.gitcd nido./scripts/init-env.sh # writes .env with freshly generated secretsdocker compose up -dinit-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:
- http://localhost:3001 — the web client
- http://localhost:3000/health — API health check
Single-host server
Section titled “Single-host server”The deploy/docker-compose/ directory holds a production-shaped Compose file
that keeps data on a named volume instead of a host bind mount.
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 --buildDifferences from the development stack:
- Data lives on the named volume
nido-datamounted at/data NIDO_MASTER_KEYandJWT_SECRETare both mandatory, and Compose fails fast if either is unset- The API has a
/healthhealthcheck; both servicesrestart: unless-stopped
Prebuilt images
Section titled “Prebuilt images”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:
echo "$CR_PAT" | docker login ghcr.io -u stewartshea --password-stdinThen swap the build: / image: blocks in the Compose file, pinning a release:
api: image: ghcr.io/stewartshea/nido/api:v2026.10.26web: image: ghcr.io/stewartshea/nido/web:v2026.10.26Pin 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.
What runs where
Section titled “What runs where”| 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.
Running outside Docker
Section titled “Running outside Docker”Useful for development; not recommended for a real family’s data.
npm install # installs the api and web workspaces
# terminal 1cd api && npm run dev
# terminal 2cd web && npm run devnpm run db:init creates the registry database. Per-family databases are
created on first access.
- First run — create the first account, add a baby, invite a caregiver
- Configuration — every environment variable
- Reverse proxy & TLS — putting it behind a domain