Skip to main content

Updates

PORTAVIUM is deployed as three containers. An update replaces image references; it does not re-initialise data, revisions or certificates.

Before you update​

  1. Read the release notes on the Releases page and confirm the target version and its digests.
  2. Back up the database and the certificate material — see Backup and restore.
  3. Record the image references currently in /opt/portavium/.env. That record is your image rollback target.

Update​

Pin every image by tag and digest. A moving tag is not a version.

cd /opt/portavium
# 1. record the current references
cp .env .env.previous

# 2. write the new references into .env (editor of your choice)
# CADDY_IMAGE=<new tag>@sha256:<new digest>
# CONTROLLER_IMAGE=<new tag>@sha256:<new digest>

# 3. pull before recreating: a failed pull leaves the running stack untouched
docker compose --env-file .env pull

# 4. recreate only the services whose image changed
docker compose --env-file .env up -d

# 5. wait for health
docker compose --env-file .env ps
curl -fsSk https://127.0.0.1:8081/healthz

The controller applies its schema migrations on start. Migrations in this product are additive; they do not drop data. Keep the backup regardless — a rollback to a previous image assumes the schema the previous image expects.

Verify​

  1. Every service is healthy.
  2. System shows the expected version, running matches verified is yes and the live revision is the one you expect.
  3. The Dashboard observation chip is VERIFIED.
  4. A route you know returns its expected status over both address families.

Roll back the image​

cd /opt/portavium
cp .env.previous .env
docker compose --env-file .env pull
docker compose --env-file .env up -d

Volumes are untouched, so the previous version starts with the same data. The controller rewrites the data plane's verified document from the database, and the data plane starts from that file if it is restarted while the controller is down.

A configuration rollback is separate: see Revisions and rollback.

Data-plane restarts​

The data plane serves the last verified document even when the controller and the database are down. Restarting Caddy alone is safe for traffic but can make the running configuration drift from the verified document if a controller change is in flight; after an uncoordinated restart, check System → running matches verified and use Reapply on the live revision if it does not match.