Using Docker Compose

The most straightforward way to have Sandhole up and running is with Docker Compose. Mainly, this takes care of running dnsrobocert for you, and daemonizes your application.

For this, you'll first need to install Docker Engine on your server.

An example configuration is provided in the repository's docker-compose-example directory, using sandhole.com as the example domain and Hetzner as the DNS provider for DNS-01 challenges. Adjust the compose.yml and le-config.yml files as necessary.

Then, simply run:

docker compose up -d

You should also re-run this command whenever you make changes to your configuration and/or after you update to the latest image (docker compose pull). See the official Docker Compose documentation for more information.