Web UI updates with docker install

Your question

Does the web UI need to be updated in docker based installs? I.e. where is the state of the web UI? Within the container build image, or in a docker / bind mounted volume?

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

The web UI isn’t part of the Docker image. In Stalwart v1.0 it is installed as an Application, which is a zip bundle that the server downloads from resourceUrl. The default installation has one for the WebUI, mounted at /admin and /account. The state lives in two places:

  • Blob store: the downloaded zip is kept here. If you use a volume or bind mount for your data, this part persists.
  • unpackDirectory: the server unpacks the bundle here and serves the files from it. If the field is empty, it uses the system temp directory, which is inside the container’s writable layer and isn’t persisted.

On Docker I’d set unpackDirectory to a path on a mounted volume, such as /var/lib/stalwart/webui. Otherwise, hosts or containers that clean /tmp can leave you with a half-working UI that reports “could not fetch a dynamically imported module”. The server creates the directory as its own user, so the mount must be writable by that user.

You don’t update the web UI by pulling a new image. The server doesn’t poll for new releases. It keeps the stored bundle for autoUpdateInterval, which defaults to 90 days. After that, it downloads a fresh copy at the next server start, when the Application object changes, or when an UpdateApps action runs. To pick up a new release immediately without a restart, run:

stalwart-cli create Action/UpdateApps

You can also create the action in the WebUI under Management › Actions. It updates all enabled applications at once. If a download fails, the previous version stays in service.

If the container has no outbound HTTPS access, copy the zip into the container and set resourceUrl to a file:// URL, for example file:///var/lib/stalwart/webui.zip.

Docs: Overview | Stalwart and Updates | Stalwart

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

The bot answer is confusing to me here. For docker installs, what is the proper way to stay up to date with the web UI?

The bot is correct, either update the applications in the WebUI itself or call the CLI command, then refresh your browser.

If you hover over the logo you will get a tooltip with the current version.

Using Docker has no impact on it, as long as Stalwart can still reach Github to download the WebUI.

The applications will also auto update by default every 30 days.

Hi Zeus,

The web UI isn’t part of the Docker image. On first start the server downloads it from GitHub and keeps the bundle in its blob store, which with the default storage settings lives in the data volume (/var/lib/stalwart). At each start it unpacks that stored copy into a temporary directory inside the container. Pulling a newer image or recreating the container therefore leaves the web UI version as it was.

To move to the latest release, run the UpdateApps action (Management > Actions in the web UI, or stalwart-cli create Action/UpdateApps) and reload the page. It downloads the current bundle and switches to it without a restart.

The stored copy expires after 90 days by default (autoUpdateInterval on the Application object), not 30, and an expired copy is only replaced at the next restart or when the Application object is edited. Nothing polls GitHub in the background. Application updates has the details.