The Pipedash web server in the ghcr.io image, with SQLite or PostgreSQL. Covers example stacks, env vars and health.
Pipedash ships a web server as the image ghcr.io/hcavarsan/pipedash-web. It serves the REST API, the WebSocket at /api/v1/ws and the embedded frontend on one port.
Image
Every version tag publishes the image to the GitHub Container Registry for linux/amd64 and linux/arm64.
| Tag | Example for release 0.4.0 | Note |
|---|---|---|
| semver | 0.4.0 | Full version |
| major.minor | 0.4 | Moves with each patch release |
| sha | sha-<short-commit> | One tag per commit |
latest | latest | Skipped when the tag name contains -beta or -alpha |
docker pull ghcr.io/hcavarsan/pipedash-web:latestThe image is a scratch image with CA certificates and one static binary. It runs as UID and GID 65532:65532. It declares /data as a volume and sets PIPEDASH_DATA_DIR=/data and PIPEDASH_CONFIG_PATH=/data/config.toml.
The image declares no exposed port. Publish the listening port in Docker or Compose. The binary listens on 127.0.0.1:8080 unless the config or PIPEDASH_BIND_ADDR changes it. A container needs PIPEDASH_BIND_ADDR set to 0.0.0.0:8080.
A bind-mounted data directory must be writable by 65532:65532. A config file must be readable by that user. Settings that save the config also need write access.
Environment variables
These are the variables the example compose files set, plus the server variables that a deployment often needs. The Configuration page lists every variable.
| Variable | Value in examples | Meaning |
|---|---|---|
PIPEDASH_BIND_ADDR | 0.0.0.0:8080 | Listen address. Default 127.0.0.1:8080. Overrides server.bind_addr. |
PIPEDASH_DATA_DIR | /data | Data directory. A value starting with /data or /var also selects server mode. |
PIPEDASH_METRICS_ENABLED | "true" | Not read by the current version. general.metrics_enabled in config.toml controls metrics and defaults to true. |
PIPEDASH_EMBEDDED_FRONTEND | "true" | Serves the bundled UI. Default true. Only true or 1 enables it. |
PIPEDASH_CONFIG_PATH | /config/config.toml | Config file location. The image default is /data/config.toml. |
PIPEDASH_VAULT_PASSWORD | <vault-password> | Encrypts tokens in storage. Also the API bearer token. It has no _FILE form. |
PIPEDASH_POSTGRES_URL | <postgres-url> | PostgreSQL connection string. Postgres example only. |
GITHUB_TOKEN | <github-token> | Read by ${GITHUB_TOKEN} in config.toml. |
PIPEDASH_CORS_ALLOW_ALL | not set | Allows any origin, method and header. Default false. Only true or 1 enables it. Overrides server.cors_allow_all. |
PIPEDASH_BASE_PATH | not set | Serves the UI under a sub-path such as /pipedash. Overrides server.base_path. The Reverse proxy page covers it. |
PIPEDASH_DEMO_MODE | not set | true or 1 turns on the read-only demo mode. |
PIPEDASH_PUSH_RELAY_URL | not set | Push relay address, such as https://relay.pipedash.app. A non-empty value overrides push.relay_url and disables the Settings switch. A blank value selects no relay. The push alerts section covers it. |
PIPEDASH_STATUS_PAGES_ENABLED | not set | Overrides general.status_pages_enabled for provider status-page checks. The file default is true. Values true, 1 and yes enable it, without regard to case. |
PIPEDASH_HTTP_POOL_SIZE | not set | Maximum idle HTTP connections per host for shared provider clients. Default 10. An invalid integer uses the default. |
RUST_LOG | not set | Rust log filter. Default pipedash=info,pipedash_core=info,pipedash_api=info,tower_http=info. |
PIPEDASH_SERVER_MODE | not set | Selects server-style config discovery when present, even with the value false. |
PIPEDASH_API_MODE | not set | Also selects server-style config discovery when present. |
KUBERNETES_SERVICE_HOST, DOCKER_CONTAINER or a PIPEDASH_DATA_DIR starting with /data or /var also selects server-style config discovery. This affects config discovery. It does not replace PIPEDASH_BIND_ADDR.
PIPEDASH_POSTGRES_URL supplies the connection string through the ${PIPEDASH_POSTGRES_URL} reference in the example config. It does not select the storage backend by itself.
The sample values in the repo are not secure. A server exposed to a network needs its own vault password, Postgres password and GitHub token in place of the samples.
Secrets can come from files. When GITHUB_TOKEN is unset, ${GITHUB_TOKEN} in config.toml reads the file named in GITHUB_TOKEN_FILE, for example a Docker secret under /run/secrets. The Configuration page covers this.
Port
The server reads no port variable. PIPEDASH_PORT has no effect. The port is part of PIPEDASH_BIND_ADDR, and the compose file maps the host port. To publish port 3000, change the host side of the mapping:
ports:
- "3000:8080"Setup mode
A container without a config.toml starts in setup mode and shows the setup wizard in the browser. Setup mode uses PIPEDASH_BIND_ADDR when it is set. The wizard writes bind_addr = "127.0.0.1:8080" into the new file, so a container that starts without PIPEDASH_BIND_ADDR listens on loopback after the restart. The examples avoid both cases because they set the variable and mount a ready config.toml.
SQLite stack
examples/sqlite runs one Pipedash container with a named volume for /data and a read-only config mount. A short-lived pipedash-data-init service prepares the volume first.
services:
pipedash-data-init:
image: busybox:1.38.0@sha256:a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4
command: ["chown", "-R", "65532:65532", "/data"]
volumes:
- pipedash-data:/data
pipedash:
build:
context: ../..
dockerfile: docker/Dockerfile
platforms:
- linux/amd64
platform: linux/amd64
ports:
- "8080:8080"
environment:
PIPEDASH_BIND_ADDR: 0.0.0.0:8080
PIPEDASH_DATA_DIR: /data
PIPEDASH_METRICS_ENABLED: "true"
PIPEDASH_EMBEDDED_FRONTEND: "true"
PIPEDASH_CONFIG_PATH: /config/config.toml
PIPEDASH_VAULT_PASSWORD: vaultpassword@123
GITHUB_TOKEN: your-github-token-here
volumes:
- ./config.toml:/config/config.toml:ro
- pipedash-data:/data
depends_on:
pipedash-data-init:
condition: service_completed_successfully
restart: unless-stopped
volumes:
pipedash-data:The pipedash-data-init service sets the data volume owner to 65532:65532. Pipedash starts after that service finishes.
The example config.toml defines 2 GitHub providers with token = "${GITHUB_TOKEN}" and selected repositories. It comments out the providers for GitLab, Buildkite and Jenkins.
mise run examples:sqlite:up
mise run examples:sqlite:downup builds the image and starts the stack. down stops it and runs docker compose down -v, which deletes the pipedash-data volume.
PostgreSQL stack
examples/postgres adds a postgres:17-alpine service with a health check. The Pipedash service waits until the database reports healthy and until pipedash-data-init finishes.
services:
postgres:
image: postgres:17-alpine@sha256:3540c0362c809df084ffac0ae69fe794515f9de92692f02178bcdce0ef0302ac
platform: linux/amd64
environment:
POSTGRES_USER: pipedash
POSTGRES_PASSWORD: change-me-to-a-secure-password
POSTGRES_DB: pipedash
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pipedash -d pipedash"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
pipedash-data-init:
image: busybox:1.38.0@sha256:a46257e06c82ad85242d0d38077d0a52d9896389ca60a1a59d3463db586e5fa4
command: ["chown", "-R", "65532:65532", "/data"]
volumes:
- pipedash-data:/data
pipedash:
build:
context: ../..
dockerfile: docker/Dockerfile
platforms:
- linux/amd64
platform: linux/amd64
ports:
- "8080:8080"
environment:
PIPEDASH_BIND_ADDR: 0.0.0.0:8080
PIPEDASH_DATA_DIR: /data
PIPEDASH_METRICS_ENABLED: "true"
PIPEDASH_EMBEDDED_FRONTEND: "true"
PIPEDASH_CONFIG_PATH: /config/config.toml
PIPEDASH_VAULT_PASSWORD: vaultpassword@123
PIPEDASH_POSTGRES_URL: postgres://pipedash:change-me-to-a-secure-password@postgres:5432/pipedash
GITHUB_TOKEN: your-github-token-here
volumes:
- ./config.toml:/config/config.toml:ro
- pipedash-data:/data
depends_on:
postgres:
condition: service_healthy
pipedash-data-init:
condition: service_completed_successfully
restart: unless-stopped
volumes:
postgres-data:
pipedash-data:The pipedash-data-init service sets the data volume owner to 65532:65532. Pipedash starts after that service finishes.
Its config.toml sets backend = "postgres" and connection_string = "${PIPEDASH_POSTGRES_URL}". The Postgres password appears twice, so both places need the same change. The storage backends page covers the backend rules.
mise run examples:postgres:up
mise run examples:postgres:downVolumes
| Volume | Mount | Holds |
|---|---|---|
pipedash-data | /data | Persistent data directory in both stacks. The SQLite stack also stores its database here. |
postgres-data | /var/lib/postgresql/data | PostgreSQL data. Postgres stack only. |
./config.toml | /config/config.toml (read-only) | Config file. A Settings change that writes the file, such as the config editor, needs a writable mount. |
Compose commands
The mise tasks are shortcuts. These commands run the SQLite stack from the repository root with Docker Compose alone:
docker compose -f examples/sqlite/docker-compose.yml up -d --build
docker compose -f examples/sqlite/docker-compose.yml logs -f
docker compose -f examples/sqlite/docker-compose.yml down
docker compose -f examples/sqlite/docker-compose.yml down -v| Command | Effect |
|---|---|
up -d --build | Builds the image and starts the stack in the background |
logs -f | Follows the logs |
down | Stops the stack and keeps the volumes |
down -v | Stops the stack and deletes the volumes, which resets the data |
examples/postgres/docker-compose.yml takes the same commands for the PostgreSQL stack. After the stack starts, the web UI answers at http://localhost:8080 with the default port mapping.
Push alerts for iPhone and iPad
Paired phones and phones that added this server for alerts check it in the background without any setup. Push is faster on iPhone and iPad, but it needs relay sending on the server, and relay sending starts off on a new web server. Apple delivers push alerts only through a relay that holds the signing key of the Pipedash app, so the server needs a relay address first.
- Settings switch: Settings, Notifications shows "Background notifications". It is off by default. Turning it on writes
relay_url = "https://relay.pipedash.app"into the[push]section ofconfig.toml, so the config mount needs write access. Turning it off removes the section. - Environment variable: a non-empty
PIPEDASH_PUSH_RELAY_URLoverridespush.relay_urland disables the switch, which then reads "Set by PIPEDASH_PUSH_RELAY_URL." A blank value selects no relay and leaves the switch enabled. - Own relay: point
relay_urlor the variable at a relay run as described in Run a push relay. The iPhone app accepts only the relay it was built for, which ishttps://relay.pipedash.appin the App Store build.

The server sends the relay a subscription id and an alert id, with no alert title, body or pipeline name. Each phone then downloads the alert from this server, so the relay never sees pipeline names. With relay sending off, phones still check the server in the background, with delays. The Notifications page covers the phone side and the Security page covers the trust model.
The server records alerts only while at least one device is paired. It keeps them for 7 days, 500 at most.
Run a push relay
The repository builds a separate relay with docker/push-relay.Dockerfile. The relay needs an APNs signing key that can send notifications to the app's bundle ID.
The App Store app uses https://relay.pipedash.app. Changing only the server's relay URL does not make that app use a different relay. A custom app build sets PIPEDASH_PUSH_RELAY_URL at compile time. The app and its host must use the same relay URL.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
RELAY_BIND_ADDR | string | No | 0.0.0.0:8080 | HTTP listen address. |
RELAY_DATABASE_PATH | string | No | pipedash-push-relay.db | SQLite database path. The Docker image sets /data/relay.db. |
RELAY_APNS_KEY | string | One key source | none | APNs private key in PEM format. A non-empty value takes precedence over RELAY_APNS_KEY_PATH. |
RELAY_APNS_KEY_PATH | string | One key source | none | Path to the PEM private key when RELAY_APNS_KEY is absent or blank. |
RELAY_APNS_KEY_ID | string | Yes | none | Apple signing key ID. |
RELAY_APNS_TEAM_ID | string | Yes | none | Apple developer team ID. |
RELAY_ALLOWED_BUNDLE_IDS | string | Yes | none | Comma-separated app bundle IDs. Blank entries are ignored. At least one ID is required. |
RELAY_TRUSTED_PROXY | boolean string | No | false | Accepts true or 1, with surrounding whitespace allowed. Uses the last address in the last X-Forwarded-For header for registration rate limits. |
RUST_LOG | string | No | info | Rust log filter. |
The APNs key must be a PKCS#8 ES256 P-256 private key. Debug app builds register with the APNs sandbox environment. Release builds use production.
docker build -f docker/push-relay.Dockerfile -t pipedash-push-relay .
docker run --rm \
-p 8081:8080 \
-e RELAY_APNS_KEY_PATH=/run/secrets/apns.p8 \
-e RELAY_APNS_KEY_ID=<key-id> \
-e RELAY_APNS_TEAM_ID=<team-id> \
-e RELAY_ALLOWED_BUNDLE_IDS=com.henrique.pipedash \
-v <relay-data-directory>:/data \
-v <apns-key-file>:/run/secrets/apns.p8:ro \
pipedash-push-relayThe image runs as 65532:65532. The data directory must be writable and the key file readable by that user. It declares /data as a volume and port 8080. Put a TLS reverse proxy in front of the relay. Leave RELAY_TRUSTED_PROXY off unless a trusted proxy controls the forwarded header.
The relay creates its SQLite database and runs embedded migrations at startup. Persist /data, including the SQLite journal files. The database stores a SHA-256 subscription ID hash, the APNs device token, environment, bundle ID and activity timestamps.
Relay API
These routes belong to the relay, not the Pipedash server. They have no bearer-token check. The subscription ID acts as a secret for sending, rotating and deleting a subscription.
| Method | Path | Body | Result |
|---|---|---|---|
| GET | /healthz | none | Plain text ok. |
| POST | /v1/subscriptions | device_token, environment, bundle_id | 201 with subscription_id. |
| PUT | /v1/subscriptions/{subscription_id} | device_token | 204, or 404 for an unknown subscription. |
| DELETE | /v1/subscriptions/{subscription_id} | none | 204, including an unknown subscription. |
| POST | /v1/notifications | subscription_id and alert_id | 202 after APNs accepts the notification. |
environment is production or sandbox. A device token contains 64 to 200 hexadecimal characters and has an even length. The relay converts it to lowercase. An alert ID contains 1 to 64 ASCII letters, digits, - or _.
The notification route also accepts the older title and body payload, with optional thread_id, pipeline_id, provider_id and run_number. A request cannot combine those fields with alert_id.
Request bodies have a 16 KiB limit. Registration allows 20 attempts per hour per client address. IPv6 addresses share a limit within a /64. The relay keeps at most 10 subscriptions for one device token. New registrations remove older entries beyond that limit.
Notifications allow 30 requests per minute per subscription. Unknown subscriptions return 404. An APNs response that invalidates the device token removes its subscription and returns 410. Rate limits return 429. Other APNs delivery failures return 502.
The relay removes subscriptions after 90 days without registration, token rotation or a successful notification. It checks expiration every hour.
Read-only demo mode
PIPEDASH_DEMO_MODE=true (or 1) makes the web server refuse every change, so a public instance can show real pipelines without risk. It is a server variable only. config.toml has no key for it and the desktop app ignores it. The server logs "Demo mode: configuration changes and pipeline actions are rejected" at startup.
- Reads: the UI loads and reads work, including pipelines, run history, logs, metrics and the WebSocket. Reads under
/storage/,/providers/exportand/push/are refused, exceptGET /push/relay. - Allowed writes: unlocking the vault, refreshing providers, metrics dashboard queries, run-history queries, log search, log download links and pairing codes for Connect to a server. A paired device can remove itself and manage its own push registration and notification preferences.
- Paired devices: the server stores each device under a generic name such as "Demo iPhone or iPad" instead of its hostname, and visitors can't remove other devices.
- Refused: every other
POST,PUT,PATCHandDELETEunder/api/v1. That covers adding, editing and removing a provider, triggers, cancels and reruns, settings, the cache, the config editor, views and pins, locking the vault, setup and the factory reset. The answer is status403with the codeDEMO_READ_ONLYand the message "This is a read-only demo. Install Pipedash to connect your own providers." - Sign-in: the vault status route adds
demo_password, and the sign-in screen shows "This is a demo. The password is …" above the form. The password is the API token, so setPIPEDASH_VAULT_PASSWORDand expect everyone who opens the page to see it. - Providers: the server blocks only its own routes. Give Pipedash read-only credentials at the provider as well.
examples/demo in the repository is the stack behind demo.pipedash.app. It runs a read-only Pipedash with PostgreSQL and real Gitea Actions, Jenkins, ArgoCD, Tekton, FluxCD and Komodo instances. Start it with docker compose up -d in that directory. The first start takes about 10 minutes and needs about 8 GB of RAM. The UI answers at http://localhost:8080, and the password is pipedash-demo. The README.md there covers publishing it behind a tunnel.
For push alerts from the demo, set PIPEDASH_PUSH_RELAY_URL=https://relay.pipedash.app in its .env file before starting the stack. Demo mode does not allow changing the "Background notifications" switch.
The stack isolates Pipedash from the internet. Its relay-egress service forwards TLS traffic for relay.pipedash.app to the official relay and closes connections for any other server name. The README.md there lists the public profile, tunnel and optional analytics settings.
Health check
GET /api/v1/health needs no authentication and returns JSON with status, version and database. The database object holds connected and provider_count.
curl http://localhost:8080/api/v1/healthstatus | HTTP code | Meaning |
|---|---|---|
ok | 200 | The server is ready and the database query worked |
initializing | 200 | The token store is still loading or the vault is locked |
setup_required | 200 | No config exists yet. The response adds setup_required. |
config_error | 200 | The config is invalid. The response adds config_error with the text. |
database_error | 503 | The provider query against the database failed. connected is false. |
A failed database query makes the server report itself as unhealthy, so an uptime check or a Kubernetes probe sees the failure. The image defines no HEALTHCHECK. It is a scratch image without a shell or curl, so the probe has to run outside the container. The REST API reference page covers the other routes.
Desktop app
Where the Pipedash desktop app keeps data, tokens and config on macOS, Windows and Linux, plus its settings, in-app updates and installers.
Server mode
Run one Pipedash server and connect the web, desktop and mobile apps to it. Covers the hosts, pairing a device step by step, address rules, device management and common errors.