Skip to content

🐋 Docker installation

Docker Compose is the recommended way to self-host Domain Watchdog. The official image maelgangloff/domain-watchdog contains the web application and the API; the provided docker-compose.yml starts it together with every service it needs.

  • A Linux server (or any machine) with Docker Engine and the Docker Compose plugin
  • A domain name pointing to the server and a reverse proxy, if the instance must be reachable from the Internet
  • Optionally, an SMTP server or another Symfony Mailer transport to send email notifications
ServiceImageRole
domainwatchdogmaelgangloff/domain-watchdogWeb interface and API, listening on 127.0.0.1:8080
php-workermaelgangloff/domain-watchdogBackground worker: RDAP updates, notifications and domain orders
databasepostgres:16-alpinePostgreSQL database storing domains, their history and user accounts
valkeyvalkey/valkeyMessage queues and locks shared between the application and the worker

An InfluxDB service is also present in the file, commented out: enable it only if you want to collect statistics.

How to install Domain Watchdog with Docker Compose?

Section titled “How to install Domain Watchdog with Docker Compose?”
  1. Download the docker-compose.yml and modify it as needed. At least, replace the default PostgreSQL password !ChangeMe! (variable POSTGRES_PASSWORD).

  2. Download the .env, rename it to .env.local and modify it as needed. This file holds the instance settings (mailer, registration, limits, SSO…).

  3. Add static files to customize your instance (under public/content). This directory is mounted in the container.

  4. Pull the latest version of the Domain Watchdog image from Docker Hub:

    Terminal window
    docker compose pull
  5. Start the project in production environment:

    Terminal window
    docker compose up -d
  6. Open http://localhost:8080 and create the first account.

  • docker compose ps lists the four services with the running state.
  • docker compose logs -f php-worker shows the messages processed by the worker. Watchlists are processed every 5 minutes, so domain names added to a Watchlist are refreshed shortly after its creation.
  • A domain search from the web interface returns the RDAP data of the domain.

How to expose the instance on the Internet?

Section titled “How to expose the instance on the Internet?”

The domainwatchdog container only listens on the loopback interface (127.0.0.1:8080). To make it reachable from the Internet, place a reverse proxy (Caddy, Nginx, Traefik…) in front of it and serve it over HTTPS.

On a public instance, consider disabling open registration (REGISTRATION_ENABLED=false) or limiting the number of Watchlists per user (LIMITED_FEATURES and LIMIT_MAX_* variables).