# Upgrade (https://unmissed.dev/docs/upgrade)

[Back up](/docs/back-up) first, and only carry on if both commands finished without errors.

With the prebuilt image:

```sh
docker compose pull
docker compose up -d
```

`edge` always points at the newest build. To stay on one version, change both `image:` lines in `docker-compose.yml` from `edge` to a `sha-` tag, like `ghcr.io/unmissed/unmissed:sha-0497200`. Each build is tagged with the first 7 characters of its commit.

If you [built from source](/docs/install#build-from-source):

```sh
git pull
docker compose up -d --build
```

The database updates itself on start. Receiving URLs are briefly down while the app restarts and updates the database, and webhooks already received are sent once the worker is back.