Skip to content

Installation ​

Trackalizer runs as a single Docker container. Its data is one SQLite file in the container's /data folder, its backups go to /backups.

Requirements ​

  • A computer or server with Docker and Docker Compose, for example a home server or a NAS.
  • An HTTPS address you open Trackalizer at, such as https://track.example.com. For a first sign-in at home http://<server>:3010 is enough, but passkeys and the Android app need HTTPS. A reverse proxy provides it (see below).
  • A clone of the repository. The image is built on your machine when you start it; there is no image in a registry yet. The first build takes a few minutes.

Starting with Docker Compose ​

bash
git clone <repository-url> trackalizer
cd trackalizer/deploy
echo 'PUBLIC_URL=https://track.example.com' > .env
docker compose up -d --build

Then open the address from PUBLIC_URL and create your account (see First steps).

Settings ​

All settings are environment variables, in the .env file next to docker-compose.yml or in the stack's variables if you use Portainer or a similar manager.

VariableExampleMeaning
PUBLIC_URLhttps://track.example.comThe address you open in the browser. Required, otherwise sign-in and passkeys fail.
TRACKALIZER_PORT3010Port on the host (default 3010)
TRACKALIZER_DATA_PATH/opt/trackalizerHost folder for the data (default: a Docker volume)
TRACKALIZER_BACKUP_PATH/mnt/backups/trackalizerFolder or network share for backups (default: a Docker volume)
USER_UID / USER_GID1000Owner of the files on the host (default 1000)
TRUSTED_ORIGINShttp://192.168.1.5:3010Further addresses you open Trackalizer at, comma separated
AUTH_SECRETOptional. Otherwise generated on the first start and stored in the database.
TZEurope/BerlinTime zone, for example for the backup time

Sign in at PUBLIC_URL only

If you open Trackalizer at another address, the browser drops the sign-in without an error. The sign-in page then warns you and links to the right address. Allow further addresses with TRUSTED_ORIGINS.

Reverse proxy and HTTPS ​

For HTTPS, put a reverse proxy in front of Trackalizer, for example Nginx Proxy Manager, Caddy or Traefik:

  1. Create a proxy host for your domain pointing to http://<docker-host>:3010, with an SSL certificate and HTTPS enforced.
  2. Set PUBLIC_URL to exactly that address (https://…, no trailing slash) and restart the container.
  3. Expose only the proxy, not the container's port.
  4. Uploading the Android app sends about 40 MB in one request. Allow requests that large in the proxy (nginx: client_max_body_size 200m;).
  5. The proxy should pass the client address in X-Forwarded-For, so the sign-in history shows the right IP addresses.
  6. For passkeys in the Android app, the path /.well-known/assetlinks.json has to reach Trackalizer, and the domain has to be reachable from the internet.

Data and backups ​

Without further settings Docker keeps the data in a named volume. With TRACKALIZER_DATA_PATH it lives in a folder of your choice. On start the container hands the files to USER_UID/USER_GID and then runs as that user.

Trackalizer backs up its database by itself. Set it up in the web interface under System settings → Backup: daily at a chosen time (default 02:30), how many backups to keep (default 14), plus Back up now and a download per backup. The files are named trackalizer-<date>-<time>.db.gz and go to /backups, that is the volume or TRACKALIZER_BACKUP_PATH.

Backups are confidential

A backup contains everything: your data, the password hashes and the session secret. Do not share the folder. If you set AUTH_SECRET yourself, keep that value safe as well.

On a network share, the user USER_UID (default 1000) must be allowed to write. If that fails, the page shows "Backup failed" with the reason.

Restoring ​

  1. Stop the container.

  2. Move trackalizer.db-wal and trackalizer.db-shm in the data folder out of the way; they belong to the old database.

  3. Unpack the backup:

    bash
    gunzip -c trackalizer-20261107-023000.db.gz > /opt/trackalizer/trackalizer.db
  4. Start the container again. It sets the file's owner, and a newer version brings an older backup up to date automatically.

Updating ​

bash
git pull
docker compose up -d --build

Database changes run automatically on start. The Android app also gets new code with the next build (see Android app).

With Portainer, create the stack from the Git repository (compose path deploy/docker-compose.yml) and update it with Pull and redeploy, or automatically via a webhook.

Trackalizer will be open source under the MIT license.