mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
23 lines
543 B
YAML
23 lines
543 B
YAML
services:
|
|
pymc-repeater:
|
|
build: .
|
|
container_name: pymc-repeater
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8000:8000
|
|
devices:
|
|
# SPI DEVICES (Your path may differ)
|
|
- /dev/spidev0.0
|
|
- /dev/gpiochip0
|
|
# USB DEVICES (Your path may differ)
|
|
- /dev/bus/usb/002:/dev/bus/usb/002
|
|
# SPI DEVICES PERMISSIONS
|
|
cap_add:
|
|
- SYS_RAWIO
|
|
# USB DEVICSE PERMISSIONS
|
|
group_add:
|
|
- plugdev
|
|
volumes:
|
|
- ./config.yaml:/etc/pymc_repeater/config.yaml
|
|
- ./data:/var/lib/pymc_repeater
|