diff --git a/servapps/mbusd/cosmos-compose.json b/servapps/mbusd/cosmos-compose.json index 29bf24b5..0b83e66d 100644 --- a/servapps/mbusd/cosmos-compose.json +++ b/servapps/mbusd/cosmos-compose.json @@ -38,7 +38,20 @@ ["8O1", "8O1: 8 databits, odd parity, 1 stoppbit"], ["8N2", "8N2: 8 databits, no parity, 2 stoppbit"] ] + }, + { + "name": "exposePort", + "label": "expose Modbus-Server to local network? (insecure)", + "initialValue": false, + "type": "checkbox" + }{if Context.exposePort} + , { + "name": "exposedPort", + "label": "Which Port would you like to expose to the local network? (May NOT be used by another Service)", + "initialValue": "502", + "type": "text" } + {/if} ], "translation": { "de": { @@ -55,7 +68,9 @@ ["ttyACM1", "/dev/ttyACM1 -> Serieller Anschluss 1 -> KNX, RS485 oder RS232"], ["ttyACM2", "/dev/ttyACM2 -> Serieller Anschluss 2 -> RS485 oder RS232"], ["ttyACM3", "/dev/ttyACM3 -> Serieller Anschluss 3 -> RS485 oder RS232"] - ] + ], + "form.exposePort.label": "Modbus-Server im lokalen Netzwerk veröffentlichen? (unsicher)", + "form.exposedPort.label": "Welchen Port möchten Sie für das lokale Netzwerk freigeben? (Darf NICHT von einem anderen Dienst verwendet werden)" } } }, @@ -84,9 +99,12 @@ "target": "/usr/app", "type": "volume" } - ], - "ports": [ - "502:502" - ] } + ] + {if Context.exposePort} + , "ports": [ + "{Context.exposedPort}:502" + ] + {/if} + } } } \ No newline at end of file