Skip to content

Update Process

The Compose files changed (new screenshotter and llm services) and .env is no longer part of the repository: keep your own .env, never copy .env.example over it, and add by hand the variables you miss. Open a terminal in the deployment/ folder of your Watcher copy and run these commands, in this order:

  1. make backup: saves the database in deployment/backups/.
  2. cp ../.env ../.env.backup: makes a safety copy of your settings file.
  3. git checkout -- ../.env: drops your changes in the old .env of the repository (your copy is safe), so that the next step is not refused.
  4. git pull: downloads the new version of Watcher, with the new docker-compose.yml.
  5. cp ../.env.backup ../.env: puts your settings back.
  6. diff ../.env.example ../.env: shows the settings that differ: add by hand the ones your .env misses (none is required, each has a default).
  7. diff .env.example .env: same for the deployment settings of deployment/.env.
  8. make down: stops Watcher.
  9. make pull: downloads the new images: Watcher, the screenshot service and the local AI.
  10. make migrate: updates the database to the new version.
  11. make populate-db: brings the analyst user groups up to date (and adds the new banned words and RSS sources).
  12. make up: starts Watcher.
  13. docker compose logs -f llm: follows the local AI while it downloads its model: it is ready at the line listening on.

The local AI container downloads a model of about 500 MB at its first start (a few minutes). Until then the summaries use a template and are written again afterwards. Nothing downloads? Set HTTPS_PROXY in deployment/.env, then make up. Stalled? docker compose restart llm resumes it.

No make? Use docker compose down, docker compose pull, docker compose run --rm watcher python manage.py migrate, docker compose run --rm watcher python manage.py populate_db and docker compose up -d, with the docker-compose.yml of the repository. No git? Download the new docker-compose.yml and replace yours.