There is an issue with the new automaic port detection introduced in #2 which this PR aims to fix:
When you have a container /opt/nginx/docker-compose.yml like this:
The current detection of 1234 as the port fails, because it looks for traefik.http.services.nginx-nginx (traefik assigns nginx-nginx as a service name) in the container labels. So I added a check which finds the router of the service and then searches for traefik.http.nginx.
There is an issue with the new automaic port detection introduced in #2 which this PR aims to fix: When you have a container
/opt/nginx/docker-compose.yml
like this:The current detection of
1234
as the port fails, because it looks fortraefik.http.services.nginx-nginx
(traefik assignsnginx-nginx
as a service name) in the container labels. So I added a check which finds the router of the service and then searches fortraefik.http.nginx
.What do you think?