Installing with Docker

Tickory runs as a single container: the server and the web app together. The data lives in one SQLite file in a Docker volume.

What you need

Installing

1. Get the files

git clone https://github.com/WNijhof/tickory.git
cd tickory
cp .env.example .env

2. Choose the first account

Open .env and fill in a username and a password. (The comments in that file are in Dutch.)

TODO_ADMIN_USER=anna
TODO_ADMIN_PASSWORD=choose-a-long-password-here
# The name as others see it (optional; otherwise the username):
TODO_ADMIN_NAME=Anna de Vries

3. Start

docker compose up -d
docker compose ps          # after a few seconds: (healthy)
docker compose logs -f     # follow the log; stop with Ctrl+C

The log says “Eerste account … (beheerder) aangemaakt” (first account, administrator, created) and then on which address Tickory listens. Open http://127.0.0.1:8787 in a browser on the server itself and sign in.

Making it reachable for other devices

As configured in docker-compose.yml, Tickory is only reachable from the server itself (127.0.0.1:8787). That is on purpose: it makes you put HTTPS in front of it first.

Do not

Do not put Tickory on the open internet without HTTPS. Your password and your session would travel unencrypted.

The compose file

This is the docker-compose.yml from the repository, shown here without the (Dutch) comments it contains:

services:
  tickory:
    image: ghcr.io/wnijhof/tickory:latest
    container_name: tickory
    restart: unless-stopped
    init: true
    environment:
      TODO_ADMIN_USER: ${TODO_ADMIN_USER:-}
      TODO_ADMIN_PASSWORD: ${TODO_ADMIN_PASSWORD:-}
      TODO_ADMIN_PASSWORD_FILE: ${TODO_ADMIN_PASSWORD_FILE:-}
      TODO_ADMIN_NAME: ${TODO_ADMIN_NAME:-}
      TRUST_PROXY: ${TRUST_PROXY:-0}
      VAPID_SUBJECT: ${VAPID_SUBJECT:-}
      DEFAULT_TIMEZONE: ${DEFAULT_TIMEZONE:-Europe/Amsterdam}
      PUSH_ALLOWED_HOSTS: ${PUSH_ALLOWED_HOSTS:-}
      MAX_UPLOAD_MB: ${MAX_UPLOAD_MB:-25}
      ATTACHMENT_QUOTA_MB: ${ATTACHMENT_QUOTA_MB:-1024}
      SESSION_IDLE_DAYS: ${SESSION_IDLE_DAYS:-90}
      SESSION_MAX_DAYS: ${SESSION_MAX_DAYS:-365}
      PUBLIC_URL: ${PUBLIC_URL:-}
      OIDC_ISSUER: ${OIDC_ISSUER:-}
      OIDC_CLIENT_ID: ${OIDC_CLIENT_ID:-}
      OIDC_CLIENT_SECRET: ${OIDC_CLIENT_SECRET:-}
      OIDC_CLIENT_SECRET_FILE: ${OIDC_CLIENT_SECRET_FILE:-}
      OIDC_REDIRECT_URL: ${OIDC_REDIRECT_URL:-}
      OIDC_SCOPES: ${OIDC_SCOPES:-}
      OIDC_BUTTON_NAME: ${OIDC_BUTTON_NAME:-}
      OIDC_AUTO_CREATE: ${OIDC_AUTO_CREATE:-0}
      OIDC_ALLOWED_GROUPS: ${OIDC_ALLOWED_GROUPS:-}
      OIDC_ADMIN_GROUPS: ${OIDC_ADMIN_GROUPS:-}
      OIDC_GROUPS_CLAIM: ${OIDC_GROUPS_CLAIM:-}
      OIDC_ONLY: ${OIDC_ONLY:-0}
      UPDATE_CHECK: ${UPDATE_CHECK:-1}
      BACKUP_DIR: ${BACKUP_DIR:-}
      BACKUP_TIME: ${BACKUP_TIME:-03:00}
      BACKUP_KEEP: ${BACKUP_KEEP:-14}
      SECRET_KEY_FILE: ${SECRET_KEY_FILE:-}
    ports:
      - "127.0.0.1:8787:8787"
    volumes:
      - tickory-data:/data
    read_only: true
    tmpfs:
      - /tmp
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true

volumes:
  tickory-data:
image or build
By default Docker pulls the ready-made image ghcr.io/wnijhof/tickory:latest. If you would rather build on the server yourself, remove the line image: and put build: . in its place.
volumes
The database is in the volume tickory-data, inside the container under /data. So your data is kept when you replace the container.
read_only, cap_drop, no-new-privileges
Extra hardening: the container can only write in /data, runs as an ordinary user and has no special privileges.

Settings

Settings are passed as environment variables. With Docker you put them in .env.

VariableMeaning
TODO_ADMIN_USER
TODO_ADMIN_PASSWORD (or TODO_ADMIN_PASSWORD_FILE)
TODO_ADMIN_NAME
The first account. Only used as long as not a single account exists.
TRUST_PROXYSet to 1 when your own reverse proxy is in front. See HTTPS.
VAPID_SUBJECTOptional: your contact address for the browser's push service (mailto:you@example.org or an https address), for notifications. See Reminders.
DEFAULT_TIMEZONEThe time zone for users who have not set one themselves; Europe/Amsterdam by default.
PORTThe port the server listens on; 8787 by default.
HOSTThe address the server listens on; 127.0.0.1 by default, 0.0.0.0 in the container.
DB_PATHWhere the database is; ./data/todo.db by default, /data/todo.db in the container.
MAX_UPLOAD_MBThe largest file you can upload as an attachment, in megabytes; 25 by default.
ATTACHMENT_QUOTA_MBThe storage for attachments per user, in megabytes; 1024 by default.
ATTACHMENTS_DIRWhere the attachments are stored; by default the folder attachments next to the database, in the container /data/attachments (so in the volume and in your backup).
CORS_ORIGINOptional: one exact address that may call the server from another origin. Normally not needed.
PUBLIC_URL
OIDC_ISSUER and more
Signing in with your own sign-in service (OpenID Connect); see Signing in with SSO.

The supplied docker-compose.yml passes the first account, TRUST_PROXY, VAPID_SUBJECT, DEFAULT_TIMEZONE, MAX_UPLOAD_MB, ATTACHMENT_QUOTA_MB, the sessions, the key file and the settings for SSO (PUBLIC_URL, OIDC_…) on from .env. PORT, HOST and DB_PATH already have the right value in the container; if you want to use CORS_ORIGIN, add it yourself under environment:.

The image is still private

As long as the repository and the image are private on GitHub, your server has to sign in once to be able to fetch them:

docker login ghcr.io -u <your-github-name>     # password: a token with only "read:packages"

Once they are public, this is not needed.

Without Docker

Handy for trying it out or for development. You only need Node 26; there are no packages to install and there is no build step.

TODO_ADMIN_USER=anna TODO_ADMIN_PASSWORD='a-good-password' node server/main.ts

Then open http://127.0.0.1:8787. On Windows you double-click start.cmd (or run .\start.cmd in PowerShell): the first time it asks for a username and a password for the first account, and then the server starts.

And after that