forked from SiliconLabsSoftware/z-wave-protocol-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 805 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*-
# SPDX-License-Identifier: Zlib
# SPDX-FileCopyrightText: Silicon Laboratories Inc. https://www.silabs.com
---
services:
broker:
image: eclipse-mosquitto:1.6.15 # TODO: 2.0.21 needs config files
ports:
- '1883:1883'
command: mosquitto
logging:
driver: "none" # Disables logging for this service
restart: "no"
stop_signal: SIGTERM
zpc:
image: z-wave-protocol-controller
build: .
command: run --mqtt.host=broker --zpc.serial="${ZPC_DEVICE:-/dev/ttyACM0}" ${ZPC_ARGS:--}
volumes:
- /dev/pts:/dev/pts
devices:
- ${ZPC_DEVICE:-/dev/ttyACM0}:/dev/ttyUSB0
depends_on:
broker:
condition: service_started
environment:
ZPC_ARGS: "--"