English

Admin guide Setup

Upgrading

Move to a new Archipelego version and keep every canvas and stored key.

On this page

An upgrade replaces the code and keeps the data folder. Canvases are Yjs documents saved as .yjs files. A new version opens the files of an older one.

Before you upgrade

  1. Back up the data folder. See Data and backup.
  2. Make sure the new version gets the same vault key:
    • either the .vault.key file stays in the data folder,
    • or you set the same ARCHIPELEGO_SECRET again.
  3. Tell the room. Open browsers reconnect by themselves, and their local copy keeps any edits made while the server restarts.

Docker

Pull the new image, then recreate the container with the same volume and the same settings:

bash
docker pull ghcr.io/yannickhuchard/archipelego:latest
docker stop archipelego
docker rm archipelego
docker run -d --name archipelego -p 1234:1234 -v archipelego-data:/data ghcr.io/yannickhuchard/archipelego:latest

Add the same -e options you used before. The volume archipelego-data holds the canvases, so removing the container does not remove them.

docker stop sends SIGTERM. The server saves every open canvas before it exits.

Docker Compose

bash
docker compose pull
docker compose up -d

Compose recreates the container with the new image. It keeps the archipelego-data volume and reads the same .env file.

To pin a version, set ARCHIPELEGO_TAG in .env to that tag instead of latest.

From source

Stop the server, then run:

bash
git pull
npm install
npm run build
npm start

Run node scripts/build-docs-site.mjs after npm run build if you serve the docs site.

One-line installers

If you installed with a one-line installer, INSTALL.md explains how to upgrade that installation.

After the upgrade

  • Check curl http://localhost:1234/health. It answers {"ok":true}.
  • Open a canvas you know and check that it loads.
  • Open AI models and keys and check that stored keys still show their last four characters.