docker-examples icon indicating copy to clipboard operation
docker-examples copied to clipboard

Explore automatic host-to-container DNS resolution/routing

Open geerlingguy opened this issue 9 years ago • 2 comments

There are some interesting solutions to the problem of "how do I use friendly domain names that can be automatically/easily configured" with Docker containers. Some important background:

geerlingguy avatar Sep 24 '16 03:09 geerlingguy

Current approach to this is to manually use docker-gen (What https://github.com/jwilder/nginx-proxy uses). You can see it here: https://github.com/derimagia/docker-edge/blob/dab25d34b6123156756942395a17162fb1e16295/docker-entrypoint.sh#L6 - Only uses nginx but jwilder has one for haproxy as well (https://github.com/jwilder/docker-discover)

I wish I could find a way to automatically set up the host machine for development purposes to point to the servers, but I haven't looked too much into it yet. Let me if you find something better!

derimagia avatar Oct 08 '16 16:10 derimagia

A link directly to docker-gen.

geerlingguy avatar Dec 28 '16 04:12 geerlingguy