Installing and moving
Updating Flowplan
Install new versions by hand or automatically – with the right image tag and a fresh backup first.
9 min read
On this page
Related: Installation with Docker · Storage, S3 and backups · Restore
Before you update
- Read the release notes. What changed is in the releases on GitHub (opens in a new tab) and under What's new. Look out for breaking changes in particular: they say what you have to adjust before or after the update.
- Back up. On start, Flowplan brings the database up to date by itself. After that, the only way back is a backup from before – see Back up first.
- Pick a moment. With SQLite, Flowplan is unreachable for the seconds of the restart.
Update by hand
In the folder with your compose.yaml:
docker compose pull
docker compose up -ddocker compose up -d stops the old container and starts a new one from the freshly pulled image; the volume with the data stays.
With a self-built image, use git pull and docker compose up -d --build instead.
If Flowplan runs without Compose, with docker run, pull the image and start the container again with the same options as before:
docker pull ghcr.io/yannicschuller/flowplan:0.12
docker stop -t 30 flowplan && docker rm flowplan
docker run -d --name flowplan --restart unless-stopped \
-p 127.0.0.1:3000:3000 \
-v flowplan-data:/app/data \
--env-file .env \
ghcr.io/yannicschuller/flowplan:0.12Then check:
https://flowplan.example.com/api/healthanswers200with"status":"ok".- The running version is under Settings → About Flowplan (for everyone) and under Settings → Instance → Name & version (for administrators), and in the Version tile of the overview.
docker compose logs -f flowplanshows the start; if the container does not stay up, see Troubleshooting.
After the update everyone sees New in Flowplan once the next time they open Flowplan: the release notes of every version since the one they last saw – the newest unfolded, older ones folded, grouped into Breaking changes, Security, New, Improved and Bug fixes; breaking changes are highlighted at the top. Close (or Esc) and Settings dismiss the dialog for this version. The notes are part of the image: Flowplan does not ask the internet for them. New accounts start at the running version and see no older notes; accounts from before 0.9.4 see only 0.9.4's notes after updating to it. Beta images (:beta) show the notes up to the version they report – the next release's notes only with that release. Everyone chooses what they get under Settings → Appearance & language → What's new after updates (Light and dark); administrators set the default for new accounts under Settings → Instance → Name & version (Instance). The complete list of changes is in the changelog on GitHub (opens in a new tab).
Helm and several pods are updated with helm upgrade, see Kubernetes. On Render and DigitalOcean you start a new deploy (Deploy in one click).
Upgrading to 0.7.0
Nothing to do by hand; Flowplan creates the new tables (for idempotency keys and the push relay, among others) on start. What changes for operations:
- API description only when signed in:
/api/openapi.jsonand/api/docsneed a sign-in or an API token. Public as before withFLOWPLAN_PUBLIC_API_DOCS=true(see OpenAPI and SDKs). - A shorter health check: without a token,
/api/healthonly answers{"service":"flowplan","status":"ok"}; the details come withFLOWPLAN_METRICS_TOKEN(see Health check). - Push to the apps through the push relay: notifications to the apps go end-to-end encrypted through
push.flowplan.org.APP_URLmust be the public HTTPS address and outgoing HTTPS to the relay possible – see Push relay. - Usage statistics: monitoring counts requests, active people and storage – numbers only. Switch it off with
FLOWPLAN_METRICS=offor under Settings → Instance → Monitoring (see Statistics).
Choosing the image tag
Every release is published under several tags in the GitHub Container Registry, for linux/amd64 and linux/arm64:
| Tag | You get | For |
|---|---|---|
:latest | always the newest release, including new major and minor versions | trying things out, instances you follow closely |
:0.12.3 | exactly this version; it never changes | full control; you change every update by hand |
:0.12 | the newest 0.12.x – bug fixes, but no new minor version | recommended for production |
:0 | the newest 0.x release | as long as Flowplan is at 0.x, practically the same as :latest |
:beta | the latest manually started development build, or a release if that is newer | testing new features, not for production |
:sha-1a2b3c4 | exactly one build (the first seven characters of the commit) | troubleshooting, comparing two builds |
As long as the major version is 0, minor versions (0.11 → 0.12) can contain breaking changes too. That is why :0.12 is the best choice: bug fixes come with every pull, and you make the step to 0.13 deliberately, after reading the release notes.
In the repository's compose.yaml, FLOWPLAN_VERSION in .env chooses the tag (latest when unset):
FLOWPLAN_VERSION=0.12For the next minor version, change the line to 0.13 and update as above. Features show up on :beta before the release – in these docs they are marked "New in … · in the :beta image". A beta instance needs its own volume and, with S3, its own S3_PREFIX (Coolify and reverse proxies); going back from :beta to an older release only works with a backup.
Back up first
Flowplan backs itself up in several ways, all under Settings → Instance → Storage & backup (Storage & backup):
- The scheduled database backup stores a consistent copy of the database daily or hourly – with S3 in the bucket under
backups/, otherwise in the data folder; optionally also on your own server via SFTP. - With S3, Litestream backs up the SQLite database continuously; you can restore a point in time just before the update.
- Whole instance → Download downloads the database and files as one verified file while running.
Right before an update by hand, press Back up now or download the whole instance. With PostgreSQL the backups are pg_dump archives. Everything else, including what a backup contains: Storage, S3 and backups.
On start, Flowplan runs the new version's database migrations. Starting an older version on a database that has already been migrated is not supported. The only way back to an older version is to restore a backup from before the update – changes made since the update are lost.
Going back to an older version
- Stop the container:
docker compose stop flowplan. - Put the previous version into
.env, e.g.FLOWPLAN_VERSION=0.12.3. - Bring back the database from the backup made before the update: with the app stopped, put a scheduled backup in place as
flowplan.sqlite, or restore the point in time before the update with Litestream – both under Ways to restore. - Start:
docker compose up -d. Check the version under Settings → About Flowplan.
Updating automatically
Flowplan does not update itself. Tools that watch the registry do that. They go well with a tag like :0.12: when a new 0.12.x comes out, the tag gets a new image, and the tool installs it or tells you about it.
If you set up Flowplan with the install script or cloud-init, a weekly update with a systemd timer is already there (Any server: cloud-init or install script).
Watchtower
Watchtower (opens in a new tab) checks on a schedule whether there is a new image for a container's tag and restarts the container with it – with the same options. It stops the old container before starting the new one; that suits SQLite, where two containers must never run on the same volume.
The original project containrrr/watchtower is no longer maintained (a notice in its README since December 2025). It is developed further as nicholas-fedor/watchtower (opens in a new tab), with the images ghcr.io/nicholas-fedor/watchtower and nickfedor/watchtower. Environment variables and labels are the same.
Add this to your compose.yaml:
services:
flowplan:
image: ghcr.io/yannicschuller/flowplan:${FLOWPLAN_VERSION:-0.12}
# … everything else as in your compose.yaml
labels:
com.centurylinklabs.watchtower.enable: "true"
watchtower:
image: ghcr.io/nicholas-fedor/watchtower:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: Europe/Berlin
WATCHTOWER_LABEL_ENABLE: "true"
WATCHTOWER_SCHEDULE: "0 17 4 * * *"
WATCHTOWER_CLEANUP: "true"
WATCHTOWER_NOTIFICATION_URL: "discord://WEBHOOK_TOKEN@WEBHOOK_ID"
restart: unless-stoppedWATCHTOWER_LABEL_ENABLElimits Watchtower to containers with the labelcom.centurylinklabs.watchtower.enable: "true"– other containers on the server are left alone.WATCHTOWER_SCHEDULEis a cron expression with seconds first: here daily at 4:17 in the time zone fromTZ. Avoid the full hour – Watchtower's docs recommend that for images from the GitHub Container Registry.WATCHTOWER_CLEANUPremoves the old image after the update.WATCHTOWER_NOTIFICATION_URLreports every update, here to a Discord webhook. Watchtower uses Shoutrrr (opens in a new tab) for this; e-mail, Telegram, Gotify, ntfy and many others work the same way. Without the line there are no messages.- When stopping, Watchtower waits 30 seconds (
WATCHTOWER_TIMEOUT), so Flowplan and Litestream shut down cleanly. - With
WATCHTOWER_MONITOR_ONLY: "true"Watchtower only reports and updates nothing.
Watchtower needs the Docker socket, which lets it do anything on the server – only give it to tools you trust. All options: Watchtower's documentation (opens in a new tab).
Diun: notify only
Diun (opens in a new tab) ("Docker Image Update Notifier") updates nothing: it only tells you that a new image is out. You then install the update yourself, after reading the release notes and backing up.
services:
flowplan:
image: ghcr.io/yannicschuller/flowplan:${FLOWPLAN_VERSION:-0.12}
# … everything else as in your compose.yaml
labels:
diun.enable: "true"
diun:
image: crazymax/diun:latest
command: serve
volumes:
- ./diun:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: Europe/Berlin
DIUN_WATCH_SCHEDULE: "0 */6 * * *"
DIUN_PROVIDERS_DOCKER: "true"
DIUN_NOTIF_NTFY_ENDPOINT: https://ntfy.sh
DIUN_NOTIF_NTFY_TOPIC: my-secret-flowplan-topic
restart: unless-stoppedEvery six hours Diun checks only containers with diun.enable: "true" and sends a message to the ntfy topic – pick a name nobody guesses, or use your own ntfy server. Instead of ntfy, e-mail, Discord, Telegram, Gotify, Matrix, a webhook and more work too (Diun's documentation (opens in a new tab)). With an exact tag such as :0.12.3 and the label diun.watch_mode: semver, Diun reports every newer version, new minor versions included.
Coolify, Portainer and CasaOS
Coolify does not watch the registry itself. Redeploy in the resource pulls the image again. To do it automatically, call the resource's deploy webhook with an API token – from a nightly cron job, for example:
curl -fsS -X POST -H "Authorization: Bearer $COOLIFY_TOKEN" \
"https://coolify.example.com/api/v1/deploy?uuid=…&force=false"Where to find the webhook and the token is described under Roll out automatically. With SQLite, first set Container naming to a fixed name, so two containers never run at the same time (Roll out SQLite without overlap).
Portainer: in the stack's Editor you update the stack with the option to pull the image again and redeploy. Depending on the edition and the kind of stack, Portainer also offers a webhook that a cron job or another tool can call – see the Portainer documentation (opens in a new tab). Watchtower and Diun run next to Portainer just as well.
CasaOS: an app from the app store comes with its image tag; CasaOS offers updates when the store entry gets a new version. For a custom app, you enter the tag in the app's settings, and CasaOS pulls the image when you save. For automatic updates, Watchtower or Diun work here too. Details: CasaOS on GitHub (opens in a new tab).
Our recommendation: :0.12 instead of :latest, so only bug fixes arrive automatically; new minor versions deliberately and after the release notes. Automatic updates only together with automatic backups – the scheduled database backup, with S3 also Litestream. And never update :beta automatically.
The notice in the administration Since 0.12.4
When a newer version is out, Flowplan shows the instance's administrators "Flowplan X.Y.Z is available" in the administration. For this, the server checks GitHub's list of releases at most once a day and sends nothing about the instance along. You can turn the notice off in the administration or with FLOWPLAN_UPDATE_CHECK=off (Configuration) – for example on hosted or automatically deployed instances, where someone takes care of updates anyway.