reproxy.port to enable container

This commit is contained in:
Umputun 2021-04-28 14:37:11 -05:00
parent 2670144e8a
commit 9b9d64894d

View File

@ -126,6 +126,11 @@ func (d *Docker) List() ([]discovery.URLMapper, error) {
}
}
// should not set anything, handled on matchedPort level. just use to enable implicitly
if _, ok := c.Labels["reproxy.port"]; ok {
enabled = true
}
if !enabled {
log.Printf("[DEBUG] container %s disabled", c.Name)
continue