Skip to content

Commit 8f2a023

Browse files
committed
docker: Wait broker before starting zpc
Origin: SiliconLabsSoftware#85 Relate-to: SiliconLabsSoftware/z-wave-engine-application-layer#23 Signed-off-by: Philippe Coval <[email protected]>
1 parent 78dfbc4 commit 8f2a023

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ services:
1616
zpc:
1717
image: z-wave-protocol-controller
1818
build: .
19-
command: run --mqtt.host=broker --zpc.serial="${ZPC_DEVICE:-/dev/ttyACM0}" ${ZPC_ARGS}
19+
command: run --mqtt.host=broker --zpc.serial="${ZPC_DEVICE:-/dev/ttyACM0}" ${ZPC_ARGS:--}
2020
volumes:
2121
- /dev/pts:/dev/pts
2222
devices:
2323
- ${ZPC_DEVICE:-/dev/ttyACM0}:/dev/ttyUSB0
2424
depends_on:
25-
- broker
25+
broker:
26+
condition: service_started
2627
environment:
2728
ZPC_ARGS: "--"

0 commit comments

Comments
 (0)