DNS based service discovery for docker inspired by skydock.
Rainbow-dock uses rainbow-dns combined with a simple populator to produce a dns based service discovery tool for your docker installation :rainbow::rocket:
docker run -p 8080:8080 -p 53:53 -p 53:53/udp -d asbjornenge/rainbow-dock --domain internal.domain --apihost 0.0.0.0 --dnshost 0.0.0.0 --fwdhost 8.8.8.8
For more options check out the rainbow-dns documentation.
The next step is to run rainbow-dock-populator. It will query your docker host(s) and populate rainbow-dock with the results.
docker run -d asbjornenge/rainbow-dock-populator --dockerhost 10.0.0.10:4243 --apihost [rainbow-dock-container-or-host-ip]:port
You can now dig @[rainbow-dock-container-or-host-ip] "*.internal.domain".
If your containers use rainbow-dock as their default dns service, they can discover each other using dns names, like the internet! You can configure that in a few different ways, read up on that here.
And that is all. You now have dns based service discovery for your docker installation.
enjoy.
Content type
Image
Digest
sha256:9552369df…
Size
121.1 MB
Last updated
almost 11 years ago
docker pull asbjornenge/rainbow-dock