In a docker-compose context, with a traefik container, by default a container cannot resolve the rule/host
of another container.
2 solutions :
- use
network aliases
(https://docs.docker.com/compose/compose-file/compose-file-v3/#aliases) => cf compose.yml - use
dnsmasq
on the host to forward every dns requests for a TLD/domaine (eg.*.localhost
) to traefik