skirl

Installing Skirl

Skirl is one program with the web app inside. Pick the way your browser and phone will reach it, follow that one section from an empty folder to the end, and it ends with the address open in your browser. After every step there is one command and the exact answer that means the step worked: if you get something else, stop there.

How it is reached Follow
Only at home, by its address on your network (plain HTTP) At home, no proxy
From anywhere, through a Cloudflare Tunnel Cloudflare Tunnel
From anywhere, through a Traefik you already run in Docker Traefik that is already running
From anywhere, through Caddy on the same machine Caddy
From anywhere, through nginx on the same machine nginx
As a program on Linux, without Docker The binary with systemd

The Docker paths need Docker with Compose (docker compose version prints a version). Phones and browsers allow notifications only over HTTPS, so for real use pick a path with a proxy or the tunnel. Every example uses notify.example.com for your server's name and /opt/docker/skirl for its folder: use your own.

If it runs but does not open in your browser: It works on the server but not in my browser.

To hear about your other containers too (a crash, an out-of-memory kill, a failing health check), add the Docker companion afterwards: Docker containers.

At home, no proxy#

Skirl on a machine at home, opened by its address on your network, such as http://192.168.1.20:8080. Plain HTTP works for the web app, sending messages and the inbox. It does not give push notifications (browsers allow them only over HTTPS, or on the machine itself as localhost), and an iPhone cannot add it to the Home Screen as an app. Add a proxy or the tunnel later; the data stays.

1. Make the folder.

sudo mkdir -p /opt/docker/skirl && sudo chown "$USER" /opt/docker/skirl && cd /opt/docker/skirl
pwd
/opt/docker/skirl

2. Make .env, the settings, with a setup token of its own:

printf 'SKIRL_SETUP_TOKEN=%s\n' "$(openssl rand -hex 32)" > .env

The file, whole:

SKIRL_SETUP_TOKEN=<64 random hex characters>
  • SKIRL_SETUP_TOKEN: the wizard asks for it before it creates the first admin, so nobody else on your network gets there first. Once an admin exists it does nothing. Keep it until then: cat .env shows it.
grep -Ec '^SKIRL_SETUP_TOKEN=[0-9a-f]{64}$' .env
1

3. Make compose.yml with exactly this:

services:
  skirl:
    image: ghcr.io/homelabza/skirl:1
    container_name: skirl
    restart: unless-stopped
    env_file:
      - .env
    ports:
      - "8080:8080"
    volumes:
      - data:/data
volumes:
  data:
  • image: the newest Skirl 1.x; ghcr.io/homelabza/skirl:1.0.0 would stay on one release.
  • container_name: the container is called skirl, so the commands here can name it.
  • restart: it starts again after a crash or a reboot, unless you stopped it.
  • env_file: the settings from .env.
  • ports: port 8080 of this machine reaches Skirl.
  • volumes: everything Skirl keeps (database, files, keys) is in the volume data, which outlives the container.
docker compose config --quiet && echo ok
ok

4. Start it.

docker compose up -d
docker inspect -f '{{.State.Health.Status}}' skirl
healthy

It says starting for a few seconds first.

5. Ask it from another computer on your network, with this machine's address (hostname -I on the machine prints it):

curl -s http://192.168.1.20:8080/v1/health
{"healthy":true}

6. Open the address. Open http://192.168.1.20:8080: the wizard asks for the setup token, then creates your admin and checks the rest with you. This is what the page asks for first:

curl -s http://192.168.1.20:8080/api/v1/setup/state
{"needs_admin":true,"token_required":true,"completed":false}

Cloudflare Tunnel#

Skirl reached from anywhere at https://notify.example.com through a Cloudflare Tunnel: no port opened at home, Cloudflare holds the certificate. cloudflared and Skirl share a Docker network, and the tunnel sends the name straight to the container, http://skirl:8080. WebSockets and Skirl's long-lived streams pass a tunnel without extra settings (Skirl sends a keepalive every 45 seconds, inside Cloudflare's 125-second limit).

This path was run by hand on 2026-11-26; CI cannot run it, because it needs a Cloudflare account and a real domain. You need a domain whose DNS is on Cloudflare.

1. Make the tunnel. In the Cloudflare dashboard: Networking → Tunnels → Create a tunnel, type Cloudflared, give it a name. Of the install command it shows, copy only the long token after --token. Then, on the tunnel's Routes tab: Add route → Published application: Hostname notify and your domain, Service URL http://skirl:8080. Adding the route makes the DNS record for the name: a CNAME to <tunnel ID>.cfargotunnel.com, proxied. Do not make an A record for the name yourself.

dig +short notify.example.com

It answers with Cloudflare's addresses (such as 104.21.x.x and 172.67.x.x), not one of yours.

2. Make the folder.

sudo mkdir -p /opt/docker/skirl && sudo chown "$USER" /opt/docker/skirl && cd /opt/docker/skirl
pwd
/opt/docker/skirl

3. Make .env, Skirl's settings:

printf 'SKIRL_BASE_URL=https://notify.example.com\nSKIRL_SETUP_TOKEN=%s\n' "$(openssl rand -hex 32)" > .env

The file, whole:

# /opt/docker/skirl/.env
SKIRL_BASE_URL=https://notify.example.com
SKIRL_SETUP_TOKEN=<output of: openssl rand -hex 32>
  • SKIRL_BASE_URL: the address people use. Links in notifications and the phone install link use it, and the web app shows it as fixed, set here.
  • SKIRL_SETUP_TOKEN: the address is on the internet from the moment the tunnel runs, so the wizard asks for this before it creates the first admin. Once an admin exists it does nothing.

and tunnel.env, the tunnel's token, kept out of Skirl's settings:

printf 'TUNNEL_TOKEN=%s\n' 'paste-the-tunnel-token-here' > tunnel.env && chmod 600 .env tunnel.env
grep -c . .env tunnel.env
.env:2
tunnel.env:1

4. Make the shared network, once per machine (if cloudflared already runs here, connect it instead: docker network connect proxy <its container>, and leave its service out of the file below):

docker network create proxy
docker network inspect -f '{{.Name}}' proxy
proxy

5. Make compose.yml with exactly this (deploy/cloudflare-tunnel/compose.yml):

# /opt/docker/skirl/compose.yml: Skirl behind a Cloudflare Tunnel
# (docs/install.md). The tunnel's route sends notify.example.com to
# http://skirl:8080 on the network both containers join.
services:
  skirl:
    image: ghcr.io/homelabza/skirl:1
    container_name: skirl
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - data:/data
    networks:
      - proxy
  cloudflared:
    image: cloudflare/cloudflared:2026.11.2
    container_name: cloudflared
    restart: unless-stopped
    command: tunnel --no-autoupdate run
    env_file:
      - tunnel.env
    networks:
      - proxy
volumes:
  data:
networks:
  proxy:
    external: true
  • Skirl publishes no port: only cloudflared, on the same network, reaches it, by its name skirl.
  • cloudflared reads its token from tunnel.env (TUNNEL_TOKEN) and connects out to Cloudflare. Its image is pinned to a release (2026.11.2, checked 2026-11-26), as Skirl's is to 1; raise it when Cloudflare releases a newer one. It is made for amd64 and arm64 only, not for a 32-bit Raspberry Pi OS.
  • networks: proxy: external: true: the network made in step 4, which both join.
docker compose config --quiet && echo ok
ok

6. Start it.

docker compose up -d
docker inspect -f '{{.State.Health.Status}}' skirl
healthy

In the dashboard the tunnel now says Healthy.

7. Ask it through the tunnel, from any computer:

curl -s https://notify.example.com/v1/health
{"healthy":true}

8. Open the address. Open https://notify.example.com: the wizard asks for the setup token (cat .env shows it), creates your admin and checks the rest; at its connection step, Trust this proxy trusts cloudflared. This is what the page asks for first:

curl -s https://notify.example.com/api/v1/setup/state
{"needs_admin":true,"token_required":true,"completed":false}

Traefik that is already running#

Skirl joins the Docker network of a Traefik you already run, which holds the certificate for notify.example.com. This assumes a Traefik with the Docker provider, an entry point websecure on port 443 that does TLS for its routers (a certificate resolver), and a network called proxy it is on; change the names in the labels to yours. If your websecure routers need a resolver named, add traefik.http.routers.skirl.tls.certresolver=<yours>.

1. Make the folder.

sudo mkdir -p /opt/docker/skirl && sudo chown "$USER" /opt/docker/skirl && cd /opt/docker/skirl
docker network inspect -f '{{.Name}}' proxy && pwd
proxy
/opt/docker/skirl

2. Make .env, the settings:

printf 'SKIRL_BASE_URL=https://notify.example.com\nSKIRL_SETUP_TOKEN=%s\n' "$(openssl rand -hex 32)" > .env && chmod 600 .env

The file, whole:

# /opt/docker/skirl/.env
SKIRL_BASE_URL=https://notify.example.com
SKIRL_SETUP_TOKEN=<output of: openssl rand -hex 32>
  • SKIRL_BASE_URL: the address people use. Links in notifications and the phone install link use it, and the web app shows it as fixed, set here.
  • SKIRL_SETUP_TOKEN: the address is on the internet as soon as Skirl starts, so the wizard asks for this before it creates the first admin. Once an admin exists it does nothing.
grep -Ec '^(SKIRL_BASE_URL=https://notify.example.com|SKIRL_SETUP_TOKEN=[0-9a-f]{64})$' .env
2

3. Make compose.yml with exactly this (deploy/traefik/compose.yml):

# /opt/docker/skirl/compose.yml: Skirl behind a Traefik already running
# in Docker (docs/install.md). Traefik finds it by its labels on the
# network both share and sends notify.example.com to port 8080.
services:
  skirl:
    image: ghcr.io/homelabza/skirl:1
    container_name: skirl
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - data:/data
    networks:
      - proxy
    labels:
      - traefik.enable=true
      - traefik.docker.network=proxy
      - traefik.http.routers.skirl.rule=Host(`notify.example.com`)
      - traefik.http.routers.skirl.entrypoints=websecure
      - traefik.http.services.skirl.loadbalancer.server.port=8080
volumes:
  data:
networks:
  proxy:
    external: true
  • No published port: Traefik reaches Skirl on the network.
  • The labels: Traefik may route to it (enable), over the network proxy, for the name notify.example.com on the entry point websecure, to its port 8080.
docker compose config --quiet && echo ok
ok

4. Start it.

docker compose up -d
docker inspect -f '{{.State.Health.Status}}' skirl
healthy

5. Ask it through Traefik:

curl -s https://notify.example.com/v1/health
{"healthy":true}

6. Open the address. Open https://notify.example.com: the wizard asks for the setup token (cat .env shows it), creates your admin and checks the rest; at its connection step, Trust this proxy trusts Traefik. If Traefik itself sits behind another proxy, the wizard shows the lines for Traefik's forwardedHeaders.trustedIPs. This is what the page asks for first:

curl -s https://notify.example.com/api/v1/setup/state
{"needs_admin":true,"token_required":true,"completed":false}

Caddy#

Caddy on the machine, in front of Skirl in Docker. Caddy gets the certificate for notify.example.com by itself, so the name must already point at this machine and ports 80 and 443 must reach it.

1. Install Caddy as its own instructions say for your system (on Debian and Ubuntu, from Caddy's package repository).

systemctl is-active caddy
active

2. Make the folder.

sudo mkdir -p /opt/docker/skirl && sudo chown "$USER" /opt/docker/skirl && cd /opt/docker/skirl
pwd
/opt/docker/skirl

3. Make .env, the settings:

printf 'SKIRL_BASE_URL=https://notify.example.com\nSKIRL_SETUP_TOKEN=%s\n' "$(openssl rand -hex 32)" > .env && chmod 600 .env

The file, whole:

SKIRL_BASE_URL=https://notify.example.com
SKIRL_SETUP_TOKEN=<output of: openssl rand -hex 32>
  • SKIRL_BASE_URL: the address people use. Links in notifications and the phone install link use it, and the web app shows it as fixed, set here.
  • SKIRL_SETUP_TOKEN: the address is on the internet as soon as Caddy serves it, so the wizard asks for this before it creates the first admin. Once an admin exists it does nothing.
grep -Ec '^(SKIRL_BASE_URL=https://notify.example.com|SKIRL_SETUP_TOKEN=[0-9a-f]{64})$' .env
2

4. Make compose.yml with exactly this:

services:
  skirl:
    image: ghcr.io/homelabza/skirl:1
    container_name: skirl
    restart: unless-stopped
    env_file:
      - .env
    ports:
      - "127.0.0.1:8080:8080"
    volumes:
      - data:/data
volumes:
  data:

127.0.0.1:8080:8080: only programs on this machine, Caddy among them, reach Skirl directly; everyone else comes through Caddy.

docker compose config --quiet && echo ok
ok

5. Start it.

docker compose up -d
curl -s http://127.0.0.1:8080/v1/health
{"healthy":true}

6. Tell Caddy. Make Caddyfile with exactly this (deploy/caddy/Caddyfile, the setup wizard's own, tested against Caddy in CI), then put it in place:

# Caddy in front of Skirl: this is all it needs. Caddy gets the certificate itself.
# Change notify.example.com, then: caddy reload --config /etc/caddy/Caddyfile
# Skirl listens on 127.0.0.1:8080 (skirl serve --listen 127.0.0.1:8080).
# Made from the setup wizard's fix table (web/src/setup/fixes.ts) and tested against the real proxy in CI (web/e2e/proxies.spec.ts).

notify.example.com {
	reverse_proxy 127.0.0.1:8080
}
sudo cp Caddyfile /etc/caddy/Caddyfile && sudo systemctl reload caddy
curl -s https://notify.example.com/v1/health
{"healthy":true}

The first answer can take a few seconds while Caddy gets the certificate.

7. Open the address. Open https://notify.example.com: the wizard asks for the setup token (cat .env shows it), creates your admin and checks the rest; at its connection step, Trust this proxy trusts Caddy. This is what the page asks for first:

curl -s https://notify.example.com/api/v1/setup/state
{"needs_admin":true,"token_required":true,"completed":false}

nginx#

nginx on the machine, in front of Skirl in Docker, with a certificate from Let's Encrypt. The name notify.example.com must already point at this machine, and ports 80 and 443 must reach it.

1. Install nginx and get the certificate.

sudo apt-get install -y nginx
sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot certonly --nginx -d notify.example.com
sudo test -f /etc/letsencrypt/live/notify.example.com/fullchain.pem && echo ok
ok

2. Make the folder.

sudo mkdir -p /opt/docker/skirl && sudo chown "$USER" /opt/docker/skirl && cd /opt/docker/skirl
pwd
/opt/docker/skirl

3. Make .env, the settings:

printf 'SKIRL_BASE_URL=https://notify.example.com\nSKIRL_SETUP_TOKEN=%s\n' "$(openssl rand -hex 32)" > .env && chmod 600 .env

The file, whole:

SKIRL_BASE_URL=https://notify.example.com
SKIRL_SETUP_TOKEN=<output of: openssl rand -hex 32>
  • SKIRL_BASE_URL: the address people use. Links in notifications and the phone install link use it, and the web app shows it as fixed, set here.
  • SKIRL_SETUP_TOKEN: the address is on the internet as soon as nginx serves it, so the wizard asks for this before it creates the first admin. Once an admin exists it does nothing.
grep -Ec '^(SKIRL_BASE_URL=https://notify.example.com|SKIRL_SETUP_TOKEN=[0-9a-f]{64})$' .env
2

4. Make compose.yml with exactly this:

services:
  skirl:
    image: ghcr.io/homelabza/skirl:1
    container_name: skirl
    restart: unless-stopped
    env_file:
      - .env
    ports:
      - "127.0.0.1:8080:8080"
    volumes:
      - data:/data
volumes:
  data:

127.0.0.1:8080:8080: only programs on this machine, nginx among them, reach Skirl directly; everyone else comes through nginx.

docker compose config --quiet && echo ok
ok

5. Start it.

docker compose up -d
curl -s http://127.0.0.1:8080/v1/health
{"healthy":true}

6. Tell nginx. Make skirl.conf with exactly this (deploy/nginx/skirl.conf, the setup wizard's own, tested against nginx in CI; every line in location matters), then put it in place:

# nginx in front of Skirl. Put this in /etc/nginx/conf.d/ (or a sites-available file),
# change notify.example.com and the certificate paths, then: nginx -t && nginx -s reload
# Skirl listens on 127.0.0.1:8080 (skirl serve --listen 127.0.0.1:8080).
# Made from the setup wizard's fix table (web/src/setup/fixes.ts) and tested against the real proxy in CI (web/e2e/proxies.spec.ts).
# Then run the wizard's connection test: it says what is wrong if anything is.

server {
    listen 443 ssl;
    server_name notify.example.com;
    ssl_certificate /etc/letsencrypt/live/notify.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/notify.example.com/privkey.pem;
    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_http_version 1.1;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_buffering off;
        proxy_read_timeout 300s;
    }
}
sudo cp skirl.conf /etc/nginx/conf.d/skirl.conf && sudo nginx -t && sudo systemctl reload nginx
curl -s https://notify.example.com/v1/health
{"healthy":true}

7. Open the address. Open https://notify.example.com: the wizard asks for the setup token (cat .env shows it), creates your admin and checks the rest; at its connection step, Trust this proxy trusts nginx. This is what the page asks for first:

curl -s https://notify.example.com/api/v1/setup/state
{"needs_admin":true,"token_required":true,"completed":false}

The binary with systemd#

Skirl as a program on Linux, run by systemd as its own user, with its data in /var/lib/skirl. It listens on 127.0.0.1:8080, for a proxy on the same machine: the Caddy and nginx sections' Caddyfile and skirl.conf work with it unchanged.

1. Make the folder and download the release for your machine (linux_amd64, linux_arm64 or linux_armv7), its checksums and the service file:

mkdir -p ~/skirl-install && cd ~/skirl-install
curl -fsSLO https://github.com/homelabza/skirl/releases/download/v1.0.0/skirl_1.0.0_linux_amd64.tar.gz
curl -fsSLO https://github.com/homelabza/skirl/releases/download/v1.0.0/SHA256SUMS
curl -fsSLO https://raw.githubusercontent.com/homelabza/skirl/main/deploy/skirl.service
sha256sum --ignore-missing -c SHA256SUMS
skirl_1.0.0_linux_amd64.tar.gz: OK

2. Install the binary.

tar -xzf skirl_1.0.0_linux_amd64.tar.gz
sudo install -m 0755 skirl_1.0.0_linux_amd64/skirl /usr/local/bin/skirl
skirl version | head -1
skirl 1.0.0

3. Make its user and its service. deploy/skirl.service runs it as the user skirl with systemd's sandboxing, its data in /var/lib/skirl, listening on 127.0.0.1:8080.

sudo useradd --system --no-create-home --shell /usr/sbin/nologin skirl
sudo install -m 0644 skirl.service /etc/systemd/system/skirl.service
sudo systemctl daemon-reload
sudo systemctl enable --now skirl
systemctl is-active skirl
active

4. Ask it.

skirl health --listen 127.0.0.1:8080
healthy

5. Open the address. On this machine, open http://localhost:8080 (or put Caddy or nginx in front, as their sections show, and open https://notify.example.com). Nobody else can reach it yet, so it needs no setup token. This is what the page asks for first:

curl -s http://127.0.0.1:8080/api/v1/setup/state
{"needs_admin":true,"token_required":false,"completed":false}

To set anything else, such as SKIRL_LISTEN=:8080 to serve it directly on the network: With systemd. The command-line tools run as the service's user, with its data directory: Running a command.

On macOS and Windows, run skirl serve (skirl.exe serve) from a terminal or your own service manager; there is no installer.

Before the first admin exists#

A fresh server's first visitor creates the admin. Every Docker path above sets SKIRL_SETUP_TOKEN, which makes the wizard ask for it first (SKIRL_SETUP_TOKEN); once an admin exists it does nothing, and sign-up stays closed: only an admin adds people. Instead, you can create the admin from the command line before the server is reachable:

docker exec -it skirl /skirl user add --data-dir /data --admin ann

Checking a download#

Every release lists SHA256SUMS. With the archive and that file in one directory:

sha256sum --ignore-missing -c SHA256SUMS

(On macOS: shasum -a 256 --ignore-missing -c SHA256SUMS.) It prints OK for each file you have.

Each archive and image also carries a build-provenance attestation: proof, signed by GitHub, that it was built by this repository's release workflow from that tag. With the GitHub CLI signed in:

gh attestation verify skirl_1.0.0_linux_amd64.tar.gz --repo homelabza/skirl
gh attestation verify oci://ghcr.io/homelabza/skirl:1.0.0 --repo homelabza/skirl

Each release also has an SBOM (skirl_1.0.0_sbom.spdx.json): every Go module and web package Skirl is built from.

Images and tags#

ghcr.io/homelabza/skirl: latest and 1 follow the newest 1.x release, 1.0 the newest 1.0.x, and 1.0.0 stays that release. Images exist for amd64, arm64 and arm/v7 (32-bit Raspberry Pi OS). The image runs as an unprivileged user (65532), keeps its data in /data, checks its own health, and has no shell: the command-line tools run inside it (Running a command). Its settings: Configuration variables.

Building the image yourself#

From a copy of the repository, with Go installed: this builds skirl:<version>, with the version (the VERSION file, plus +<commit> for a build that is not that version's own), the commit and the date the image reports (Admin → Overview shows them):

make docker

make docker-companion builds the Docker companion the same way, as skirl-docker:<version>. Use the name it prints as image: in compose.yml. Without Go, docker build -t skirl:local . builds the same program, which reads its version from the VERSION file; only the image's version label is then empty.

After installing#

This page on GitHub