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:
make backup: saves the database indeployment/backups/.cp ../.env ../.env.backup: makes a safety copy of your settings file.git checkout -- ../.env: drops your changes in the old.envof the repository (your copy is safe), so that the next step is not refused.git pull: downloads the new version of Watcher, with the new docker-compose.yml.cp ../.env.backup ../.env: puts your settings back.diff ../.env.example ../.env: shows the settings that differ: add by hand the ones your.envmisses (none is required, each has a default).diff .env.example .env: same for the deployment settings ofdeployment/.env.make down: stops Watcher.make pull: downloads the new images: Watcher, the screenshot service and the local AI.make migrate: updates the database to the new version.make populate-db: brings the analyst user groups up to date (and adds the new banned words and RSS sources).make up: starts Watcher.docker compose logs -f llm: follows the local AI while it downloads its model: it is ready at the linelistening 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.