Allow binding ECS container port
This commit is contained in:
parent
12c713b187
commit
0d262561d1
5 changed files with 89 additions and 28 deletions
|
@ -86,7 +86,7 @@ func (p *Provider) filterInstanceV1(i ecsInstance) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if labelPort := getStringValueV1(i, label.TraefikPort, ""); i.machine.port == 0 && labelPort == "" {
|
||||
if labelPort := getStringValueV1(i, label.TraefikPort, ""); len(i.machine.ports) == 0 && labelPort == "" {
|
||||
log.Debugf("Filtering ecs instance without port %s (%s)", i.Name, i.ID)
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue