rancher / catalog-dockerfiles

Dockerfiles for Rancher Catalog containers
Apache License 2.0
131 stars 102 forks source link

Updating containers to use DNS names to connect #102

Closed nsimmonds closed 4 years ago

nsimmonds commented 7 years ago

This update changes the container discovery to DNS instead of IP. This means that each of the secondary containers will be named in mongod the same way that they are in DNS, not just the initial container. Among other benefits, this allows libraries that expect those to match to function properly; e.g., many libraries discover a master dynamically from a replicaset URI, and those often expect the DNS name to match.

nsimmonds commented 7 years ago

You can test this by updating the docker-compose to pull tetrascience/mongodb-conf:v0.2

cjellick commented 4 years ago

Very stale. Closing. Thanks! Please open a new PR if there is still a relevant change.