Getting started

Install Papyra

One compose file, one command. Papyra is a single container with no sidecars, no reverse proxy and no database to run.

Papyra ships as a Docker image, lyfie/papyra. The published recipe brings up a single container. There is nothing else to run alongside it.

curl -O https://raw.githubusercontent.com/lyfie-org/papyra/main/docker-compose.hub.yml
docker compose -f docker-compose.hub.yml up -d

Open http://localhost:8080. The first account you create is the administrator. There is no default account, so there is no default password to change.

What you just started

One container, papyra, which is the whole application. One .NET process serves both the API and the web app, so there is no separate frontend container. It listens on 8080 inside the container.

The data volume

Everything lives under /data. Back that up and you have backed up everything.

/data
├── .papyra/              instance state; papyra.db and keys/ are NOT disposable
│   ├── papyra.db         SQLite: accounts, passkeys, sharing, settings, NOT disposable
│   ├── lucene-index/     full-text index, rebuildable
│   ├── instance-backups/ daily encrypted copies of papyra.db + keys/, if turned on
│   └── keys/             data-protection keys, NOT disposable, see below
└── users/
    └── <user>/
        ├── notes/        your notes, as .md files. This is the real thing.
        │   └── journal/  journal days, one file each (year/month/date.md)
        ├── media/        images you pasted or uploaded
        ├── .trash/       deleted notes, until retention expires
        └── .papyra/
            ├── snapshots/     earlier revisions of each note
            ├── vault-keys.json  keys for locked notes, NOT disposable
            ├── journal-templates/
            ├── order.json     manual card positions
            └── categories.json

The compose file uses a named volume. If you would rather see the files, swap it for a path:

volumes:
  - ./papyra-data:/data

Then set PUID/PGID to your own user so the files belong to you rather than root. Find them with id -u and id -g.

.papyra/keys is the one directory you must not lose. It holds the keys your session cookies are signed with, and the keys that unlock each person’s vault-keys.json, which seals their locked notes and locked journal days. Delete it and everyone is logged out, and locked notes stay locked for good. It lives on the volume so that upgrading the container does not log anyone out. .papyra/papyra.db matters just as much: it holds the accounts, passkeys, sharing and settings, and nothing else can rebuild them. Back up all of /data, hidden folders included.

Changing the port

The first number is the host side:

ports:
  - "9000:8080"

Upgrading

docker compose -f docker-compose.hub.yml pull
docker compose -f docker-compose.hub.yml up -d

On start-up Papyra reconciles the folder against its cache before it opens the port, so files that changed while it was down are folded in first. So a green health check means more than “the process is up”: disk and cache already agree.

Roll back by pinning the previous tag instead of latest.

Signing in over plain HTTP

If you reach Papyra at a bare address like http://192.168.1.50:8080, signing in will appear to work and then drop you straight back to the login screen. Browsers refuse to keep a session cookie for a site that is not HTTPS, except on localhost.

On a network that is already private (a LAN, Tailscale, WireGuard):

PAPYRA_ALLOW_INSECURE_COOKIES: "true"

If Papyra is reachable from the open internet, set up HTTPS instead and leave this off.

Something wrong or missing? Improve this page on GitHub.