# Edition: install a local RSS reader for one person > Set up a private feed reader on loopback, verify database health and first-run auth readiness, and hand it back to the human to create their account and subscribe privately. - [Human setup tutorial](docs/setup.md): step-by-step installation, account onboarding, and first feed. - [Edition source](https://github.com/obra/edition): the reader, Compose file, and configuration reference. ## Agree on scope Use a fresh directory, an unused Compose project name and host port, and a local Docker daemon. Confirm permission to clone the repository, download build dependencies, build and run the container, and (if approved) contact public feed hosts. Do not modify an existing Edition instance, reuse its data volume, install system software, or open a LAN port, firewall rule, proxy, or tunnel without separate approval. Feed reading and saving links need no LunaRoute key. With AI enabled, Edition sends feed articles to the configured endpoint for briefings, topics, and Previous Coverage, and manually saved pages for embeddings. Charges may apply. Leave `LUNAROUTE_API_KEY` empty unless the human explicitly opts in. Let the human enter any password or API key privately; never invent, print, commit, retrieve, or overwrite their secrets. Never dump `.env`, the full resolved Compose configuration, or container environments. ## Prepare a clean checkout Use a POSIX shell with Git, curl, jq, and Docker Compose. Run `docker context show`, `docker info --format '{{.ServerVersion}}'`, and `docker compose version`. Confirm the daemon is the intended local one. Start with no inherited `EDITION_*`, `LUNAROUTE_*`, or `COMPOSE_*` settings. The example below uses directory and project `edition-local` and port `8080`; substitute agreed unused values throughout. Check for collisions without inspecting other containers' environments: ```sh project=edition-local port=8080 docker ps -aq --filter "label=com.docker.compose.project=$project" docker volume ls -q --filter "name=^${project}_edition_data$" ``` If either lists anything, stop. Check the host's listening ports as well. Leave any existing listener or directory alone. From the approved parent directory, run each step only after the preceding one succeeds: ```sh test ! -e "$project" && git clone https://github.com/obra/edition.git "$project" && cd "$project" && (umask 077; test ! -e .env && cp .env.example .env) ``` Keep the default database path, `/data/edition.db`, on the project-scoped `edition_data` volume. Leave `LUNAROUTE_API_KEY` blank. Leave `EDITION_AUTH_DISABLED` unset (`false` by default) so first-run account protection stays active. If `port` differs from `8080`, set `EDITION_PORT` to that number in the new `.env`. ## Restrict the binding before launch In `compose.yaml`, replace the single `0.0.0.0:${EDITION_PORT:-8080}:8080` port mapping with `127.0.0.1:${EDITION_PORT:-8080}:8080`. The stock Compose file publishes to every interface; restricting it to loopback keeps a local install private on the host. Do not append another mapping. `EDITION_ADDR` controls only the in-container listener; leave it at `:8080`. Verify the effective configuration without emitting secrets. Require `true` before building: ```sh docker compose -p "$project" config --format json | jq -e --arg port "$port" ' .services.edition as $s | ($s.ports | length) == 1 and ($s.ports[0] | .host_ip == "127.0.0.1" and .published == $port and .target == 8080) and $s.environment.LUNAROUTE_API_KEY == "" and $s.environment.EDITION_DB_PATH == "/data/edition.db" and $s.environment.EDITION_AUTH_DISABLED == "false"' && docker compose -p "$project" up -d --build && docker compose -p "$project" port edition 8080 ``` Require exactly `127.0.0.1:`. On mismatch, stop this project and correct the mapping. Do not probe an existing service if startup fails. ## Verify health and first-run onboarding Both `/api/health` and `/api/auth/status` are public even when login is enabled: ```sh base="http://127.0.0.1:$port" curl -fsS --retry 5 --retry-connrefused "$base/api/health" | jq -e '.status == "ok" and .db_ok == true' curl -fsS "$base/api/auth/status" | jq -e '.auth_enabled == true and .setup_required == true and .authenticated == false' ``` Require `true` for both checks. Confirm the SPA loads cleanly at `$base/` and renders the **Create your account** screen. Do not submit `/api/auth/setup` with a guessed password or set `EDITION_AUTH_DISABLED=true` unless the human explicitly requests it. Let the human open `http://localhost:$port/` in their own browser (using `localhost` enables local WebAuthn passkey enrollment in a Secure Context) to create their username and password privately, optionally register a passkey, and add their first feed (**Manage feeds → Add feed**) or save their first link (**Saved**). If the human explicitly asks you to verify feed ingestion with `EDITION_AUTH_DISABLED=true` during setup, get approval first, test with an approved public feed (such as `https://go.dev/blog/feed.atom`), verify `/api/health` reports `.db_ok == true and .feed_count == 1 and .article_count > 0`, and re-enable auth (`EDITION_AUTH_DISABLED=false`) before handoff. Report which optional checks you skipped. ## Hand the reader back Give the human the exact local browser URL (`http://localhost:/` for passkey support, plus `http://127.0.0.1:/`), checkout path, Compose project name, exposed loopback address, database health, auth onboarding status (`Create your account` ready), and AI status (off unless opted in). Note that loopback works on the Docker host; do not expose the port to simplify remote handoff. Tell the human: - From that checkout, `docker compose -p "$project" stop` pauses Edition and `docker compose -p "$project" start` resumes it (substitute the literal project name). - Password recovery runs via `docker compose -p "$project" exec edition edition reset-password`. - For remote HTTPS access with passkeys and mobile PWA sync, front `127.0.0.1:` with an HTTPS proxy or `tailscale serve` and set `EDITION_PUBLIC_URL`. - The named volume survives container recreation with `down` and `up -d` under the same project name. Never use `down -v`, delete the volume, or prune Docker resources as part of installation.