Skip to content

Deployment

Docker

docker build runs the same pipeline as make web && make build, inside the image, from a bare checkout — no local Hugo, Node, or Go required. Dockerfile is four stages: node:22-alpine regenerates and type-checks the TypeScript, a pinned Hugo release binary runs hugo --minify -s web, golang:1.27-alpine builds the binary against that real UI output, and alpine:3.20 is the runtime. The image never embeds the web/public/index.html placeholder used for local go build without Hugo — the Hugo stage always builds the real site first.

CGO is required. internal/store persists through mattn/go-sqlite3, a cgo binding over the SQLite C amalgamation with no pure-Go build tag, so CGO_ENABLED=0 isn't an option. The build stage links against musl (Alpine's default gcc target); the final stage is Alpine too, matching libc between build and run. A distroless/static final image is not viable with this dependency.

# Build (VERSION stamps GET /api/v1/status and cmd.Version, default "dev")
docker build --build-arg VERSION=v1.2.3 -t schedularr:v1.2.3 .
# or: make docker-build VERSION=v1.2.3

# Run: mount a config file and pass the API token via env, never the config
docker run -d --name schedularr \
  -p 8484:8484 \
  -v "$(pwd)/config.yaml:/etc/schedularr/config.yaml:ro" \
  -v schedularr-data:/data \
  -e SCHEDULARR_API_TOKEN="$(openssl rand -hex 32)" \
  schedularr:v1.2.3

The image's default CMD is serve --config /etc/schedularr/config.yaml (ENTRYPOINT ["schedularr"], so docker run ... schedularr:tag <args> replaces it with another subcommand instead). Point the mounted config's database and scheduler_file keys at paths under /data explicitly — both resolve relative to the process's working directory, not the config file's location. The container runs as a non-root schedularr user (uid 1001), exposes 8484 (api.listen's default), and its HEALTHCHECK polls GET /healthz on that port.

Build arg Default Purpose
VERSION dev Stamped via -ldflags -X .../cmd.Version=...; reported by GET /api/v1/status
GO_VERSION 1.27 golang:${GO_VERSION}-alpine build stage
NODE_VERSION 22 node:${NODE_VERSION}-alpine TypeScript stage
ALPINE_VERSION 3.20 Hugo-fetch and final runtime stage
HUGO_VERSION 0.165.0 Pinned Hugo release, downloaded and sha256-verified in-stage

Pre-built images publish to GHCR on tagged releases:

ghcr.io/christopherime/schedularr:<tag>
ghcr.io/christopherime/schedularr:latest

Configuration reference

schedularr resolves the app config file path in this order:

  1. --config <file> (global flag)
  2. SCHEDULARR_CONFIG environment variable
  3. Legacy locations, in order: ./config.yaml, ./.schedularr.yaml, ~/.config/.schedularr.yaml, ~/.schedularr.yaml
  4. ~/.schedularr/config.yaml (default)

The file is validated against the CUE schema in cmd/schema/config.cue. String values support ${VAR} environment variable interpolation, applied after parsing: an unset variable becomes an empty string (never null), and a variable's value is never re-parsed as YAML syntax.

tunarr:
  url: "" # Tunarr API endpoint (required)
  api_key: "" # Optional API key
  timeout: "30s"

log:
  level: "info" # debug, info, warn, error
  format: "text" # text, json
  timezone: "Local" # IANA time zone name

database: "schedularr.db" # SQLite database path (opened with _busy_timeout=5000&_journal_mode=WAL --
# expect -shm/-wal sidecar files alongside it)
scheduler_file: "scheduler.yaml" # First-run block import file -- see Scheduling Concepts

# Retention is the routine mechanism; the History page's deletion tools are
# for taking one specific thing out. Neither can be undone and nothing
# backfills either -- see docs/scheduling-concepts.md.
maintenance: # retention is per table -- each one prunes on its own clock
  history_retention: "168h" # How long schedule_history rows are kept; also bounds GET /history?days=N and the engine's recency-dedup window
  snapshot_retention: "168h" # How long series occurrence snapshots are kept
  apply_run_retention: "2160h" # How long apply runs and their warnings are kept (90 days); bounds GET /applies?days=N
  cleanup_enabled: true

cron_interval: "6h" # `serve`'s cron loop cadence; `serve --interval`/`-i` overrides it. The apply window scales with it (floor(interval/24h)+1 days), so >24h intervals stay safe

api: # the `serve` command's HTTP server
  listen: ":8484"
  token: "" # Bearer token for /api/v1/*; SCHEDULARR_API_TOKEN env var wins when set
  insecure_no_auth: false # Skip bearer auth entirely -- local development only

There is no metrics_port config key: schedularr serve exposes Prometheus metrics at GET /metrics on the same listener as everything else (--listen/api.listen, default :8484).

Config key Env var Default Description
api.listen — :8484 Same as --listen; the flag wins when explicitly passed
api.token SCHEDULARR_API_TOKEN "" Bearer token required on /api/v1/*. The env var always wins over this key when both are set
api.insecure_no_auth — false Same as --insecure-no-auth; either source turning it on disables auth
cron_interval — 6h Same as --interval/-i; the flag wins when explicitly passed. Top-level key, not under api.* — it governs the cron loop, not the HTTP server. Each tick's apply window is derived from it (floor(interval/24h)+1 days) so the pushed lineup always outlasts the gap between ticks

schedularr serve refuses to start if the effective token is empty (or shorter than 32 characters) and --insecure-no-auth/api.insecure_no_auth is not set.

Generate a starting file with schedularr config generate config.yaml — see Getting Started and the CLI Reference. Never commit real Tunarr credentials; keep redacted examples in configs/ and store machine-specific overrides outside the repository.

Reverse proxies and the event stream

GET /api/v1/events is a long-lived text/event-stream that stays open for the life of a browser tab. Any reverse proxy or SSO layer in front of Schedularr must not buffer it. A buffering proxy holds every event until the connection closes, which turns the live link into a stream that delivers nothing and then delivers everything at once — the failure is silent, and it looks like a broken UI rather than a broken proxy.

Schedularr already sets X-Accel-Buffering: no on the response, which nginx and anything honouring that header respect. Where the header is not enough, disable buffering for the path explicitly:

location /api/v1/events {
    proxy_pass              http://schedularr:8484;
    proxy_buffering         off;
    proxy_cache             off;
    proxy_http_version      1.1;
    proxy_set_header        Connection "";
    proxy_read_timeout      1h;
}

proxy_read_timeout matters as much as buffering: the stream's own 15s heartbeat keeps the connection warm, so any read timeout comfortably above that is fine, but a default 60s timeout on a proxy that ignores the heartbeat will cut the connection on a cycle. The client reconnects and resumes, so a short timeout degrades to a reconnect loop rather than to data loss — but it is still churn worth avoiding.

Nothing in the web UI requires the stream: every page stays fully operable with a manual refresh, and the client falls back to polling on its own. A misconfigured proxy therefore costs liveness, not function.

Helm chart

A generic Helm chart for Schedularr is maintained at geekxflood/helm-charts. It packages the docker run invocation above as a Kubernetes Deployment/Service, with the config file and SCHEDULARR_API_TOKEN supplied through standard chart values (a ConfigMap/Secret, or your own). Consult that repository for the chart's own values reference and version history — this page intentionally stays cluster-agnostic; hostnames, storage classes, and ingress configuration are specific to each deployment and belong in your own cluster's configuration, not here.