saltyorg / Saltbox

Ansible-based solution for rapidly deploying a Docker containerized cloud media server.
https://docs.saltbox.dev
GNU General Public License v3.0
571 stars 65 forks source link

Container to keep CF DNS in sync with Traefik Docker labels #120

Closed owine closed 1 year ago

owine commented 1 year ago

Describe the problem Instead of handling DNS at the role level, provision a container that monitors the Docker socket (via read only proxy) for Traefik labels that contain a domain/subdomain Host entry and ensure those are in sync with the server's public IP. This would handle creation, removal and updating records as containers are added/removed/changed.

Describe any solutions you think might work A clear and concise description of any solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

powerdude commented 1 year ago

I use a combination of oznu/cloudflare-ddns and tiredofit/traefik-cloudflare-companion with ansible-nas

saltydk commented 1 year ago

We'll be making our own version so it ties in better with Saltbox.

Barrow1990 commented 1 year ago

This would be a very useful addition. How is this coming along? And would this be apart of the main suite of apps or an additional 1 to install manually

saltydk commented 1 year ago

It is already in our test branch.

saltydk commented 1 year ago

You can deploy it manually if you want to help test it. Can probably find the relevant information in order to manually add it with docker compose here: https://github.com/saltyorg/Saltbox/blob/traefik3/roles/ddns/defaults/main.yml