I have traefik 1.7 running in docker on centos
Although it runs in Docker, traefik is using the "file" endpoints for the purpose of a proxy to another web server which resides on a separate VM. I have traefik working as a proxy for about 4 web servers. Traefik uses dns lookup to find each of those web servers and is working well. My issue is that I would like to add another web server but will use a local host entry to resolve the DNS.
I would like to have this flow:
browser -> Traefik -> web server
on the system that runs docker and hosts traefik, I modified /etc/hosts to point traefik to another web server. The result is the /etc/hosts is not used but DNS is used
I modified docker-compose.yaml and added:
version: '2'
services:
volumes:
- /etc/hosts:/etc/hosts
However the host entry is not used this time either.
I cannot access a shell in traefik.
How do I go about using a host entry for traefik?
Thank you