-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.example-client
34 lines (32 loc) · 1.05 KB
/
docker-compose.yml.example-client
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
29
30
31
32
33
34
---
services:
rudy-client:
#
# host requirement: kernel module `vhci-hcd`
# - command to load until next boot: `modprobe vhci-hcd`
# - command to load after next boot: `echo vhci-hcd >>/etc/modules`
#
image: ckware/rudy-client
container_name: rudy-client
init: true
restart: unless-stopped
environment:
USBIP_SERVER: "server-host"
USBIP_DEVICE_IDS: "0000:0000,1111:1111"
MQTT_OPTIONS: "-h broker-host"
MQTT_PUBLISH_TO_TOPIC: "rudy/client"
MQTT_RELOAD_ON_TOPIC: "rudy/server/start"
volumes:
- "/var/run/vhci_hcd:/var/run/vhci_hcd"
#
# privileged mode is required to write to
# `/sys/devices/platform/vhci_hcd.0`
#
# Related issue:
# - [Docker Mount sysfs sub-directory RW without --privileged](https://github.com/moby/moby/issues/22825)
#
# Alternative:
# - Replace runc with sysbox, see
# [Unable to mount /sys inside the container with rw access in unprivileged mode](https://forums.docker.com/t/97043)
#
privileged: true