Update your server
Back up your server, then pull and recreate the services.
You need#
- A current backup.
- The same Compose files your server already uses.
Step 1 Back up first#
Create a backup first:
just backup <destination-directory>
For copied files, see Back up and restore.
Step 2 Update the server files#
For a repository checkout, update to the release tag you want to run:
git fetch --tags
git checkout <tag>
If your saved commands name infra/compose/compose.community.yml or infra/compose/compose.community-mcp.yml, remove them; the same applies to a saved COMPOSE_FILE value. Those files no longer exist and docker-compose.yml now does their job.
For copied files, replace docker-compose.yml and, if used, compose.caddy.yml with new release copies from Compose file and settings template. Keep .env.
Step 3 Pull and recreate with the same files#
If .env sets PEPPY_SERVER_IMAGE or PEPPY_MCP_IMAGE, change them to the release you want, or delete them to follow :latest. A pinned image does not change on pull.
Pass every Compose file you started with. Leaving out the MCP overlay recreates the API without it and disconnects the worker.
For a repository checkout with Caddy:
docker compose -f docker-compose.yml -f infra/compose/compose.caddy.yml pull
docker compose -f docker-compose.yml -f infra/compose/compose.caddy.yml up -d
For copied files with Caddy:
docker compose -f docker-compose.yml -f compose.caddy.yml pull
docker compose -f docker-compose.yml -f compose.caddy.yml up -d
Without Caddy, use docker compose pull then docker compose up -d. In a repository checkout, add -f infra/compose/compose.mcp.yml for MCP. Check /readyz after the update; it checks the database, migrations, and storage.
Pin a version
Set PEPPY_SERVER_IMAGE to a version tag such as hub.docker.visnovsky.us/library/peppy-server:0.43.0. If you use MCP, set PEPPY_MCP_IMAGE to its matching version. Version tags do not move; :latest moves with each stable release.
Step 4 Update every client#
Update clients with the server. Do not downgrade an updated app. After the server compacts history, an older device may be unable to restore.
Good to know#
- Use the same Compose files for backup and update.
- After
docker compose pullmoves a:latestimage,backup.shrefuses to run untildocker compose up -drecreates the containers. - GitHub releases contain desktop and Android app updates and the changelog.
- This guide does not provide a general server downgrade path.
- If migration fails, the API does not start because it waits for the one-shot
migrateservice to complete successfully. Restore the backup you made before the update.