🐋 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.
Prerequisites
Section titled “Prerequisites”- 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
Which services are started?
Section titled “Which services are started?”| Service | Image | Role |
|---|---|---|
domainwatchdog | maelgangloff/domain-watchdog | Web interface and API, listening on 127.0.0.1:8080 |
php-worker | maelgangloff/domain-watchdog | Background worker: RDAP updates, notifications and domain orders |
database | postgres:16-alpine | PostgreSQL database storing domains, their history and user accounts |
valkey | valkey/valkey | Message 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?”-
Download the docker-compose.yml and modify it as needed. At least, replace the default PostgreSQL password
!ChangeMe!(variablePOSTGRES_PASSWORD). -
Download the .env, rename it to
.env.localand modify it as needed. This file holds the instance settings (mailer, registration, limits, SSO…).Configuration List of environment variables -
Add static files to customize your instance (under
public/content). This directory is mounted in the container. -
Pull the latest version of the Domain Watchdog image from Docker Hub:
Terminal window docker compose pull -
Start the project in production environment:
Terminal window docker compose up -d -
Open http://localhost:8080 and create the first account.
How to check that the instance works?
Section titled “How to check that the instance works?”docker compose pslists the four services with therunningstate.docker compose logs -f php-workershows 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.
If the instance is served over plain HTTP, set HTTP_SECURE_COOKIE to false in docker-compose.yml, otherwise the
session cookie is rejected by the browser and you cannot log in.
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).