From 4c5d36905e157c740fbb6c6c72d95e839d993203 Mon Sep 17 00:00:00 2001 From: aranega Date: Fri, 19 Apr 2024 20:26:30 -0600 Subject: [PATCH] CH-100 Add specific option to expose locally a DB --- .../compose/templates/auto-database.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deployment-configuration/compose/templates/auto-database.yaml b/deployment-configuration/compose/templates/auto-database.yaml index 93fd22ff..9d56ae00 100644 --- a/deployment-configuration/compose/templates/auto-database.yaml +++ b/deployment-configuration/compose/templates/auto-database.yaml @@ -9,6 +9,12 @@ {{- range $port := $db_infos.ports }} - {{ $port.port | quote }} {{- end }} + {{- with .local_expose }} + ports: + {{- range $port := $db_infos.ports }} + - 127.0.0.1:{{ $port.port }}:{{ $port.port }} + {{- end }} + {{- end }} {{- with .resources }} deploy: resources: