Verkly Get Verkly

Docs›Data and upkeep

Updating and moving

Everything Verkly knows lives in one data folder: the database, the photos and the backups. The container is only the program. Updating swaps the program and leaves the folder; moving carries the folder somewhere else. Keep the folder and nothing is lost.

Which folder is yours: the line under volumes: in your docker-compose.yml (or the Portainer stack), left of :/data. It is ./verkly-data for a new install and ./verstak-data for one made before the rename (see From Verstak to Verkly).

Two channels: latest and edge

Verkly's image comes in two channels. ghcr.io/koznov/verkly:latest is the stable one: it moves when a release is made, about every two weeks, with every change since the last release at once. ghcr.io/koznov/verkly:edge gets every change the day it is made: it is for testers, who see new things first and tell us what is wrong.

To switch to edge, change the image line in docker-compose.yml (or the Portainer stack, or the app's settings in CasaOS / ZimaOS) from ghcr.io/koznov/verkly:latest to ghcr.io/koznov/verkly:edge, then update as below. Nothing else changes: the same data folder, the same settings, no manual steps in the database.

Going back to latest is safe at any time: Verkly only ever adds to its database, so the older version starts on it and works. What the newer version added waits until you are on it again, and Settings → What works here says so. One thing does not go back: a backup made on edge can be restored only by that version or a newer one.

Before any update

  1. In Verkly open Settings → Backup (Data → Backup in older versions) and press Back up now with photos. Download the zip to your computer.
  2. Note the version you run: it is under the Settings title (and on its What's new tile) and at http://<machine>:8080/api/health.
  3. Check the volumes: line above. Don't change it during the update.

Updating

From the browser

Installs made with the one command or the installer since Verkly 1.133.0 update themselves from the page. Open Settings → Updates. It shows the version you run and the newest one out; when there is a newer one, press Update to … and confirm.

  1. Verkly makes a copy of the database (Before an update in Settings → Backup).
  2. It downloads the new version and replaces itself: Verkly is away for a minute or two.
  3. The page reloads by itself with the new version.

If the new version doesn't start within five minutes, the old one comes back by itself and the page says what went wrong. Switch on Install new versions at night and Verkly does this around 3:00 when a new version is out.

If your Docker says it already has the image although a newer Verkly is out (a cache, a mirror or a fixed image address), Settings → Updates no longer says "found nothing new" and offers an update in the same breath. It says so, shows the image address and the command to run, and the button reads Try again. A failed update says in plain words that the new version did not come up and the old one was put back.

This takes a small second container, verkly-updater, which the installer adds to docker-compose.yml. It is the only one that can change containers (it holds Docker's socket), it has no port of its own, and it only replaces Verkly's two containers. An older install gets it the easy way: run the install command again on that computer. It keeps your data and settings and adds the updater:

curl -fsSL https://verkly.app/install.sh | sh

On Windows, in PowerShell: irm https://verkly.app/install.ps1 | iex. Until then, update one of the ways below. A hosted workshop is updated by Verkly's hosting.

Docker Compose, or a folder the installer made

In the folder with docker-compose.yml:

docker compose pull
docker compose up -d

Synology Container Manager

Project → verkly → Action → Build. It pulls the newest image and starts it on the same folder.

Portainer

Stacks → verkly → Editor → Update the stack, with "Re-pull image" switched on. In the stack the data line must be a full path on the machine, for example /volume1/docker/verkly/verkly-data:/data: a relative ./verkly-data in a stack deployed from Git points at a new, empty folder.

A stack deployed from the Git repository (built from the source, with GitOps updates on) updates itself: Portainer picks up every new commit within its fetch interval, and Pull and redeploy does it at once. Nothing to change in the stack.

What happens next

The database upgrades itself on start and keeps a copy of itself first (backups/repairs-before-v….db in the data folder). Each phone shows "What's new" once, and the Telegram chat gets the list if one is connected. /api/health answers with the new version.

What's new shows the release notes in the language of the app: English, German or Russian.

CasaOS and ZimaOS

The CasaOS / ZimaOS entry comes with the updater since Verkly 1.170.4, so Update in Settings → Updates works. An app installed earlier has no updater, and Settings → Updates says it can't update itself. Add it to the app's compose: open the app on the dashboard, its settings, Edit, the YAML tab, add the network, the updater service and the two lines on verkly (and remove network_mode: bridge there), save and let it recreate the app. The app's name and data folder may differ from the ones below: if the container is called something else, add APP_CONTAINER: <its name> to the updater, and use the same data folder for both.

networks:
  verkly_net:
    driver: bridge
services:
  updater:
    image: ghcr.io/koznov/verkly:latest
    container_name: verkly-updater
    restart: unless-stopped
    command: ["python", "-m", "app.updater", "serve"]
    networks:
      - verkly_net
    volumes:
      - type: bind
        source: /var/run/docker.sock
        target: /var/run/docker.sock
      - type: bind
        source: /DATA/AppData/verkly
        target: /data
  verkly:
    # keep the rest as it is, and add:
    networks:
      - verkly_net
    environment:
      UPDATER_URL: "http://verkly-updater:8080"

If Settings → Updates still says the updater doesn't answer, check three things: both services share the network and the same data folder, UPDATER_URL names the updater's container_name, and the updater's APP_CONTAINER is the name of the Verkly container. The default network of CasaOS does not resolve container names, which is why the shared network is needed.

UGREEN (UGOS Pro)

The compose in Install → UGREEN already has the updater, so Update in Settings → Updates works. A project made without it can't update itself. Open the project in the Docker app, edit its compose so it matches that page (the updater service, the shared verkly_net network and UPDATER_URL on verkly), and start it again. The updater needs the Docker socket /var/run/docker.sock; user guides for Portainer on UGOS Pro mount it the same way, but we have not tried it on a UGREEN ourselves. If Settings → Updates says the updater doesn't answer, check the same three things as for CasaOS: both services share the network and the same data folder, and UPDATER_URL names the updater's container_name.

If an update goes wrong

  1. Go back to the version you ran: in docker-compose.yml change ghcr.io/koznov/verkly:latest to ghcr.io/koznov/verkly:1.130.0 (the version you noted, without a v), then docker compose up -d.
  2. Settings → Backup → restore the copy made before the update, or the zip you downloaded.
  3. Write to [email protected] with what happened, and go back to :latest once it is fixed.

From Verstak to Verkly

Verkly was called Verstak until version 1.22.0. A copy installed before that keeps its data in ./verstak-data and runs the image ghcr.io/koznov/verstak, which no longer updates. To bring it up to date and keep everything:

  1. Make a backup with photos (see Before any update).
  2. Either run the installer again in the same folder: it finds verstak-data and keeps using it, and keeps your old files as .bak copies.
    docker run --pull always --rm -it -v "$PWD:/install" ghcr.io/koznov/verkly python -m app.install
    docker compose up -d
  3. Or edit your own docker-compose.yml: change only the image to ghcr.io/koznov/verkly:latest and leave ./verstak-data:/data as it is. Then docker compose pull && docker compose up -d.
  4. If a container called verstak is still there and holds the port, stop and remove it once (in Portainer or Container Manager, or docker rm -f verstak). The data stays in the folder.

Everything you already have keeps working: you stay signed in, old verstak-…zip backups restore, and printed labels still open their cards.

Verkly asks you to "Create your user"? Then it started on an empty folder. Don't create one: stop it and point the volumes: line back at the folder with your data.

Moving to another machine

A new NAS, a new PC, or from a laptop to a Raspberry Pi. Two ways; the first keeps everything exactly as it was.

Carry the data folder

  1. On the old machine: docker compose down (or stop the container), so the database is not being written.
  2. Copy the whole folder (docker-compose.yml, .env and the data folder) to the new machine, for example with a USB stick or File Station.
  3. On the new machine install Docker (see Install on your server), then in that folder docker compose up -d.

Or restore a backup

  1. On the old machine: Settings → Backup → Back up now with photos, and download the zip.
  2. On the new machine install Verkly, open it and create a user (the same login is easiest).
  3. Settings → Backup → Restore from a file: drop the zip. Verkly checks it, puts it in place and reloads; the old users, passwords and authenticators come with it.

The address

Printed QR labels hold the address Verkly had when they were printed. Keep the same address (move your domain, or the Tailscale name, to the new machine) and the labels keep working. With a new address, reprint the labels you use. A passkey belongs to one address too: add one again on the new address (Settings → Sign-in & security).

Going from your own server to a hosted workshop or back works the same way: see Backups and moving.