Server: drop ntfy publishing (stage hooks, run outbox, chat attention, chat tool notify, auto-switch and schedule notices), the chat push outbox (its table is dropped at startup), ntfy status/endpoints and PIPELINES_NTFY_*. The app_notifications stream, subscribe/clear and kinds are unchanged. Notification settings keep run_finished/chat_needs_you/chat_reply_finished; ntfy_enabled is accepted and ignored and its stored row is never read. Stage type=ntfy is rejected: "ntfy stages were removed; notifications go to the Pipelines apps — use the stage notify hook". The notify hook remains. Installer: no ntfy build, accounts, config or supervisor child; manifest gets top-level "mode" (legacy ntfy.mode still read). Reinstall retires an old ntfy (safe PID-file stop, deletes binary, config, data dir, token, log, with a note in logs/install.log); uninstall cleans leftovers. App: ntfy settings section replaced by "Notification events"; texts updated. Docs: docs/ntfy.md folded into docs/notifications.md; install, docker, cli, author skill references updated; security review M1 marked resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8.2 KiB
Pipeline server in a Compose project
Complete installer (recommended for Docker)
Run ./install --docker from an interactive terminal (Docker is the explicit
--docker/docker mode; ./install.sh remains a compatibility alias, and a bare
./install now performs the native host installation). It handles Compose
configuration, image build, container skill install, first-time container
harness provider login (OpenCode by default; ./install --docker --harness pi
configures Pi and skips OpenCode login), startup and a status check. Choose your
own provider in the configured
harness; signup/login credentials stay in the Docker volume, not your host
account. Re-run to update while
preserving .env, histories and volumes. Use --relogin to connect another
provider. No fixed OpenCode Go login is required. Health checks do not prove
model inference. The server binds 0.0.0.0 by default. There are no networking
questions; --timezone and --port remain optional.
Notifications reach the Pipelines apps through the server itself (browser notifications in the web app, the Receive notifications in Pipelines background service or the open app on Android, the app on iOS and macOS); see Notifications. There is no ntfy service any more.
Re-running ./install --docker over an installation from before this change
retires its ntfy: it removes the Compose project's ntfy container and
<project>_ntfy-data volume (ntfy's caches and accounts, which nothing reads any
more), secrets/ntfy-token.txt and the NTFY_BASE_URL/NTFY_BIND_ADDRESS lines
in .env, and recreates the server with --remove-orphans. Running it again
finds nothing left to remove. ./uninstall removes any leftover ntfy container
and volume too.
The steps below are for manual setup or a developer/legacy local Pipelines
server; they are not the supported installation and are not needed when you
use ./install.
Manual developer/legacy: local pipeline server
To reuse your host OpenCode login without container authentication (manual, developer/legacy use, not a supported installation):
sh scripts/run-local-server.sh
go run ./cmd/pipelines-tui -url ws://127.0.0.1:8080/connect
The local launcher uses the existing host database and OpenCode account. Stop any existing local pipeline server before launching another against the same database/port.
compose.yaml runs one service, pipelines (Go server + OpenCode V2). No host
OpenCode service or credential database is mounted. Separate volumes persist
pipeline history, workspace files and OpenCode credentials/sessions. Do not use
docker compose down -v unless you intend to delete those volumes.
1. Local settings
Start Docker Desktop/Colima/your Docker daemon first.
python3 scripts/configure-compose.py
docker compose config --quiet
The helper detects the host's timezone and writes it to .env, so the Linux
containers do not silently schedule in UTC. It refuses to overwrite .env. If
detection is unavailable, use --timezone Europe/London (or your actual IANA
timezone). Rerun/edit settings if you move/change timezones.
.env, secrets/, and data/ are git-ignored and excluded from image builds. The container publishes port 8080; the default
host mapping is 8081, bound to host 0.0.0.0, avoiding the existing native
server on 8080. Query the actual mapped port with
docker compose port pipelines 8080. The unauthenticated pipeline WebSocket API
shares that port, so expose it only on a trusted LAN/VPN and never to the public
internet.
Use HTTP only on a trusted LAN or encrypted VPN. For public access, use HTTPS
with a reverse proxy/VPN. The host port mapping defaults to 0.0.0.0; firewall
it appropriately. The Pipelines API has no authentication and must not be
exposed to untrusted networks.
2. Authenticate the harness, then start the server
python3 scripts/build_metadata.py # resolve releases and stamp revision/dirty identity
docker compose stop --timeout 60 pipelines
# Default managed volumes only; never substitute a host bind mount for these paths.
docker compose run --rm --no-deps --user 0:0 --entrypoint sh pipelines -c \
'chown -R "$PIPELINES_UID:$PIPELINES_GID" /data /home/pipelines /workspace'
docker compose run --rm --no-deps --entrypoint opencode pipelines auth login
# Pi instead (no standalone auth login): docker compose run --rm --no-deps --entrypoint pi pipelines --tui-mode regular --no-extensions --no-skills --no-context-files --no-prompt-templates --no-tools
docker compose up -d
docker compose logs -f pipelines
Select your preferred provider and follow its authentication flow. For Pi, type
/login and choose an authentication method ("Sign in with an API key" for
provider API credentials; account and Radius remain your choice), then exit Pi
with ctrl+c/ctrl+d. Existing credentials stay in the volume and are reused by
exiting when no new sign-in is needed; completing a sign-in can update the
credentials stored in the volume. Credentials are stored
in the dedicated opencode-home volume, separate from your host account. These
interactive login is not tested in this regression. The Docker workspace/UID
checks were executed with the actual image and a mocked stage. The image includes
Go/git; installer-configured servers use the host user's UID/GID. The home and
installation checkout are bound at their original paths so runs edit the real
checkout, not the separate persistent image workspace at /workspace.
Connect the native TUI:
go run ./cmd/pipelines-tui -url ws://127.0.0.1:8081/connect
go run ./cmd/pipelines --url ws://127.0.0.1:8081/connect ping --json
If the TUI is on another machine, use an SSH/VPN tunnel instead of exposing the
unauthenticated pipeline port publicly. A brand-new database starts with the four
bundled example pipelines, seeded once; an existing database is never changed.
Open :templates and use Submit template to name/review/publish another copy,
or Customize to edit it first. All bundled examples are manual-only.
3. Notifications
Notifications come through the Pipelines apps, connected to this server; see
Notifications. If you subscribed to the old pipelines
topic in the ntfy app, remove that subscription.
Existing data and rebuilds
The containers initially use a fresh SQLite database; the host's pipelines.db
is left untouched. To migrate, first stop the host pipeline server (preventing
two schedulers), make a consistent SQLite backup, and import it into the stopped
container's /data/pipelines.db. Copying only a live .db without its WAL is
unsafe. Do not import over an existing container database without backing it up.
The database import and OpenCode session-recovery implications are not tested.
Rebuild executable changes with ./install; for a source-only refresh that still
resolves the current releases, use python3 scripts/build_metadata.py. A plain
docker compose build lacks the resolved OpenCode digest and cannot build now.
The workspace volume does not automatically replace its existing source tree
on image rebuild; back it up and update it explicitly if you need new source for
Go verification. Do not delete it casually: it may contain user-created artifacts.
OpenCode and Pi are not fixed version pins: ./install resolves the
current supported OpenCode V2 release from the single documented complete
GET /repos/{owner}/{repo}/git/matching-refs/tags/v2 response — a complete bounded
array with no page/per_page query and no Link pagination (never the moving
latest tag or the registry's insertion order) — and the current Pi release from
npm, then builds FROM the OpenCode image's immutable sha256 digest and labels
the built image with the resolved versions, digest and source identity. It fails
closed (keeping the last verified Dockerfile fallback pins) rather than guessing or
silently substituting a stale pin when discovery, digest resolution, build or
compatibility verification fails. A full ./install --docker always invokes the
Docker build for a dirty source and relies on layer caching; a model/login-only
reconfiguration rebuilds only when the verified release image identity
(versions/digest) no longer matches the resolved releases, so a source change
alone does not rebuild on reconfigure.