From ec1b7f0ddd7ead2799d7e6f1118f830591408c09 Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Tue, 7 Nov 2023 22:29:55 +0100 Subject: [PATCH] Also consider 27018 and 27019 ports for MongoDB service discovery --- envs/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envs/docker.go b/envs/docker.go index ca7f3c6c..05128818 100644 --- a/envs/docker.go +++ b/envs/docker.go @@ -397,7 +397,7 @@ func (l *Local) dockerServiceToRelationship(client *docker.Client, container typ "scheme": "http", } return rels - } else if p.PrivatePort == 27017 { + } else if p.PrivatePort == 27017 || p.PrivatePort == 27018 || p.PrivatePort == 27019 { username := "" password := "" path := ""