After upgrading to Docker engine 1.10 (from 1.08) I've noticed that my reverse proxy configuration is not working anymore.
All my apps (including Nginx for reverse proxies) are containerized and were communicating via container names. Here's an example for virtual hosts part in Nginx:
server {
server_name jobs;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://jenkins:8080;
}
}
Now, I can ping Jenkins container from Nginx container only via IP but not anymore via container name. As IPs are constantly changed due to updates, redeployments, etc. is there a better networking way of avoiding defining IPs in reverse proxy configuration?
Legacy --link
is not an option as there are lots of containers.