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
- A computer that stays on: a mini PC, a NAS, a Raspberry Pi or a server.
- Docker with
docker compose, andgitto get the files. - A processor the image exists for: amd64 (ordinary PC, mini PC, most NAS systems) or arm64 (Raspberry Pi with a 64-bit system). A 32-bit system is not supported.
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
- The password has at least 10 characters, may not be the same as the username and may not be easy to guess: no common word or password, not too few different characters. A long phrase works well.
- This account is created on the very first start and is an administrator. You then use it to create the other accounts in the app; see Managing users.
- Once an account exists, these lines no longer do anything. After the first start, remove the password from
.envand recreate the container (docker compose up -d --force-recreate): otherwise it stays in the container's configuration, wheredocker inspectshows it. - Would you rather not have it in the environment at all? Set
TODO_ADMIN_PASSWORD_FILEto the path (inside the container) of a file with the password, for example a Docker secret under/run/secrets/, and leave outTODO_ADMIN_PASSWORD. - Never put
.envin git. It is already listed in.gitignore.
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.
- Recommended: HTTPS. Needed for phones (working offline and installing as an app). See HTTPS: with Tailscale nothing has to become public.
- At home only, without HTTPS: in
docker-compose.yml, change the line"127.0.0.1:8787:8787"to"8787:8787", rundocker compose up -dand openhttp://<ip-of-the-server>:8787. The app then works in the browser of every device in the house, but not offline and not as an installed app.
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 lineimage:and putbuild: .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.
| Variable | Meaning |
|---|---|
TODO_ADMIN_USERTODO_ADMIN_PASSWORD (or TODO_ADMIN_PASSWORD_FILE)TODO_ADMIN_NAME | The first account. Only used as long as not a single account exists. |
TRUST_PROXY | Set to 1 when your own reverse proxy is in front. See HTTPS. |
VAPID_SUBJECT | Optional: your contact address for the browser's push service (mailto:you@example.org or an https address), for notifications. See Reminders. |
DEFAULT_TIMEZONE | The time zone for users who have not set one themselves; Europe/Amsterdam by default. |
PORT | The port the server listens on; 8787 by default. |
HOST | The address the server listens on; 127.0.0.1 by default, 0.0.0.0 in the container. |
DB_PATH | Where the database is; ./data/todo.db by default, /data/todo.db in the container. |
MAX_UPLOAD_MB | The largest file you can upload as an attachment, in megabytes; 25 by default. |
ATTACHMENT_QUOTA_MB | The storage for attachments per user, in megabytes; 1024 by default. |
ATTACHMENTS_DIR | Where 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_ORIGIN | Optional: one exact address that may call the server from another origin. Normally not needed. |
PUBLIC_URLOIDC_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
- Set up HTTPS, so that it works on phones too.
- Create accounts for the others.
- Schedule a backup.