databases without explicit alias(es) are now excluded by default

This commit is contained in:
yusing
2024-10-04 09:17:45 +08:00
parent e8f4cd18a4
commit 9c3edff92b
4 changed files with 35 additions and 3 deletions

View File

@@ -83,6 +83,7 @@ func (p *DockerProvider) LoadRoutesImpl() (routes R.Routes, err E.NestedError) {
func (p *DockerProvider) shouldIgnore(container D.Container) bool {
return container.IsExcluded ||
!container.IsExplicit && p.ExplicitOnly ||
!container.IsExplicit && container.IsDatabase ||
strings.HasSuffix(container.ContainerName, "-old")
}