diff --git a/servapps/mbusd/cosmos-compose.json b/servapps/mbusd/cosmos-compose.json index f4ef1176..29bf24b5 100644 --- a/servapps/mbusd/cosmos-compose.json +++ b/servapps/mbusd/cosmos-compose.json @@ -4,13 +4,13 @@ { "name": "serialPort", "label": "serial Port", - "initialValue": "/dev/ttyACM2", + "initialValue": "ttyACM2", "type": "select", "options": [ - ["/dev/ttyACM0", "/dev/ttyACM0 -> Serialport 0 -> Coprocessor"], - ["/dev/ttyACM1", "/dev/ttyACM1 -> Serialport 1 -> KNX, RS485 or RS232"], - ["/dev/ttyACM2", "/dev/ttyACM2 -> Serialport 2 -> RS485 or RS232"], - ["/dev/ttyACM3", "/dev/ttyACM3 -> Serialport 3 -> RS485 or RS232"] + ["ttyACM0", "/dev/ttyACM0 -> Serialport 0 -> Coprocessor"], + ["ttyACM1", "/dev/ttyACM1 -> Serialport 1 -> KNX, RS485 or RS232"], + ["ttyACM2", "/dev/ttyACM2 -> Serialport 2 -> RS485 or RS232"], + ["ttyACM3", "/dev/ttyACM3 -> Serialport 3 -> RS485 or RS232"] ] }, { @@ -51,10 +51,10 @@ ], "form.serialPort.label": "serieller Anschluss", "form.serialPort.options": [ - ["/dev/ttyACM0", "/dev/ttyACM0 -> Serieller Anschluss 0 -> Koprocessor"], - ["/dev/ttyACM1", "/dev/ttyACM1 -> Serieller Anschluss 1 -> KNX, RS485 oder RS232"], - ["/dev/ttyACM2", "/dev/ttyACM2 -> Serieller Anschluss 2 -> RS485 oder RS232"], - ["/dev/ttyACM3", "/dev/ttyACM3 -> Serieller Anschluss 3 -> RS485 oder RS232"] + ["ttyACM0", "/dev/ttyACM0 -> Serieller Anschluss 0 -> Koprocessor"], + ["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"] ] } } @@ -62,7 +62,7 @@ "services": { "{ServiceName}": { "image": "ghcr.io/aseracorp/mbusd:latest", - "container_name": "{ServiceName}", + "container_name": "{ServiceName}-{Context.serialPort}", "restart": "unless-stopped", "UID": 1000, "GID": 1000, @@ -76,7 +76,7 @@ }, "command": "-d -L - -p /dev/ttyModbus -s {Context.baudrate} -m {Context.mode}", "devices": [ - "{Context.serialPort}:/dev/ttyModbus:rwm" + "/dev/{Context.serialPort}:/dev/ttyModbus:rwm" ], "volumes": [ {