A daemon for provisioning mapping of nginx and Docker containers.
When an new Docker container is started, docker-lb-mapper does following:
/etc/nginx/containers volume.A mapping file consists of hostname, domainname and IP address of each container.
xxx.example.com 172.17.0.1;
yyy.example.com 172.17.0.2;
zzz.example.com 172.17.0.2;
Try the demo now. It requires Docker and Fig.
git clone https://github.com/int128/docker-lb-mapper.git
cd docker-lb-mapper/demo/
fig up
# Access to helloworld container
curl helloworld.lvh.me
# Not exists
curl dummy.lvh.me
See fig.yml and nginx configuration for details.
Content type
Image
Digest
sha256:794914841…
Size
288.8 MB
Last updated
almost 11 years ago
docker pull int128/docker-lb-mapper