Skip to content

Commit 811c346

Browse files
committed
Fix backend port fetching for Traefik v2
1 parent 4979c57 commit 811c346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/docker_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def update_containers(self) -> List[ContainerInfos]:
169169
backend_port = cont.labels.get('traefik.port')
170170
if backend_port is None:
171171
# Try Traefik v2
172-
p = re.compile('traefik.http.services*.loadbalancer.server.port')
172+
p = re.compile('traefik.http.services.*.loadbalancer.server.port')
173173
for label, value in cont.labels.items():
174174
if p.match(label):
175175
cont_info.backend_port = value

0 commit comments

Comments
 (0)