diff --git a/scripts/steward/create-docker-compose-files/docker-compose.yml.tpl b/scripts/steward/create-docker-compose-files/docker-compose.yml.tpl index 17d6d7b..4751705 100644 --- a/scripts/steward/create-docker-compose-files/docker-compose.yml.tpl +++ b/scripts/steward/create-docker-compose-files/docker-compose.yml.tpl @@ -12,11 +12,21 @@ services: image: {{.ImageAndVersion}} restart: always ports: + {{if .ExposedProfilingPort}} - "{{.ExposedProfilingPort}}:6666" + {{end}} + {{if .ExposedPrometheusPort}} - "{{.ExposedPrometheusPort}}:2111" + {{end}} + {{if .ExposedDataFolderPort}} - "{{.ExposedDataFolderPort}}:8090" + {{end}} + {{if .ExposedTcpListenerPort}} - "{{.ExposedTcpListenerPort}}:8091" + {{end}} + {{if .ExposedHttpListenerPort}} - "{{.ExposedHttpListenerPort}}:8092" + {{end}} volumes: # - {{.NkeySeedFile}}:/app/seed.txt - {{.SocketFolder}}:/app/tmp/:rw diff --git a/scripts/steward/create-docker-compose-files/main.go b/scripts/steward/create-docker-compose-files/main.go index 6633d9e..57ae1d8 100644 --- a/scripts/steward/create-docker-compose-files/main.go +++ b/scripts/steward/create-docker-compose-files/main.go @@ -141,11 +141,11 @@ func main() { brokerAddress := flag.String("brokerAddress", "", "the address:port of the broker to connect to") imageAndVersion := flag.String("imageAndVersion", "", "The name:version of the docker image to use") - exposedProfilingPort := flag.String("exposedProfilingPort", "6666", "the address:port to expose") - exposedPrometheusPort := flag.String("exposedPrometheusPort", "2111", "the address:port to expose") - exposedDataFolderPort := flag.String("exposedDataFolderPort", "8090", "the address:port to expose") - exposedTcpListenerPort := flag.String("exposedTcpListenerPort", "8091", "the address:port to expose") - exposedHttpListenerPort := flag.String("exposedHttpListenerPort", "8092", "the address:port to expose") + exposedProfilingPort := flag.String("exposedProfilingPort", "", "the address:port to expose") + exposedPrometheusPort := flag.String("exposedPrometheusPort", "", "the address:port to expose") + exposedDataFolderPort := flag.String("exposedDataFolderPort", "", "the address:port to expose") + exposedTcpListenerPort := flag.String("exposedTcpListenerPort", "", "the address:port to expose") + exposedHttpListenerPort := flag.String("exposedHttpListenerPort", "", "the address:port to expose") nkeySeedFile := flag.String("nkeySeedFile", "./seed.txt", "the complete path of the seed file to mount") socketFolder := flag.String("socketFolder", "./tmp/", "the complete path of the socket folder to mount")