Launch watcher¶
Prerequisites¶
With docker command¶
- Grab the
docker-compose.yml,.env.exampleand theSearxdirectory (keep the directory structure). The screenshot service is a published image, pulled with the others. - Copy
.env.exampleto.env(the.envis not versioned: it is yours) and fill it in. According to your existing infrastructure you may need to configure Watcher settings in it (Static configuration). - The application uses SearxNG as the meta search engine.
docker compose up
This should run Docker containers.
Please wait until you see:
watcher | db_watcher is up, starting Watcher.
watcher | Performing system checks...
watcher |
watcher | System check identified no issues (0 silenced).
watcher | [11/May/2026 12:26:52] INFO | gunicorn: Starting gunicorn
watcher | [11/May/2026 12:26:52] INFO | gunicorn: Listening at: http://0.0.0.0:9002 (1)
- Try to access Watcher on http://0.0.0.0:9002 or http://yourserverip:9002.
CONTROL-Cdocker compose downto stop all containers.
Simplify method¶
Use the deployment helper commands from the repository root:
Initialize your local configuration once, from the repository root: cp .env.example .env (this .env is the one of the root docker-compose.yml, on port 9002; make init below creates deployment/.env, a second file for the deployment, on port 9020)
And after:
cd ../deployment
make init
make up
On first run:
make migrate
make superuser
make populate-db
Then access Watcher on:
- http://0.0.0.0:9020 (default deployment port)
- or your configured domain/port from
deployment/.env
Deployment configuration is centralized in deployment/.env (generated from deployment/.env.example).
Set your secrets there, especially DJANGO_SECRET_KEY, DB_NAME, DB_USER, DB_PASSWORD, and DB_ROOT_PASSWORD.
Migrate¶
Updates the state of the database in accordance with all current models and migrations. Migrations, their relationships with applications...
docker compose down
docker compose run watcher bash
python manage.py migrate
Create admin user¶
You will need to create the first superuser to access the /admin page.
docker compose down
docker compose run watcher bash
python manage.py createsuperuser
Populate your database¶
Populate your database with hundred of banned words and RSS sources related to Cyber Security.
Use populate_db script:
docker compose down
docker compose run watcher bash
python manage.py populate_db
Good to know¶
The first time you run Watcher, you will not have any new threats on the homepage, this is normal.
You just have to wait for Watcher to crawl the Internet. This will happen every 30 minutes.