caddyserver/caddy with the Caddy DNS Module for Ionos.
https://github.com/Glopix/caddy-ionos-dns
For further information and more detailed instructions on the use of this container/caddy-module, please refer to:
https://github.com/caddyserver/caddy on how to use Caddy and
https://github.com/caddy-dns/ionos on how to use the DNS module.
docker-compose.yml
version: "3.8"
services:
caddy:
image: glopix/caddy-ionos-dns
restart: unless-stopped
ports:
- 80:80
- 443:443
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
- $PWD/Caddyfile:/etc/caddy/Caddyfile
networks:
caddy:
name: caddy
driver: bridge
# persistant storage for certs etc.
volumes:
caddy_data:
Caddyfile
your.domain.com {
respond "Hello World" # replace with whatever config you need...
tls {
dns ionos {env.YOUR_IONOS_AUTH_API_TOKEN}
}
}