mageddo / dns-proxy-server

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet
http://mageddo.github.io/dns-proxy-server/
Apache License 2.0
775 stars 76 forks source link

Docker stack deploy multiple node container resolving #141

Open FabianSchurig opened 5 years ago

FabianSchurig commented 5 years ago

In #80 there was the following observation:

Not related to your question but as you are using docker stack deploy then you are using docker swarm, you must be aware DPS will solve just containers started at the current machine, it will not solve containers from others cluster nodes.

I think it would be cool to add support for multiple nodes. Configurable like traefik, with labels in the following way:

    deploy:
      labels:
        - "dps.network=web"
        - "dps.enable=true"
        - "dps.hostname=Host:subdomain.domain.com"
        - "dps.port=8080"
        - "dps.tags=public"

Thanks in advance!

mageddo commented 5 years ago

Me too, the question is: I think docker wouldn't have such API to DPS use it, never did a deep search about it anyway

FabianSchurig commented 5 years ago

Thanks for your answer! I think it would be helpful to take a look on traefik and how container registration is realized there.