mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-06-10 16:24:49 +02:00
27 lines
609 B
YAML
27 lines
609 B
YAML
services:
|
|
pymc-repeater:
|
|
build:
|
|
context: .
|
|
args:
|
|
PUID: ${PUID:-1000}
|
|
PGID: ${PGID:-1000}
|
|
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:/etc/pymc_repeater
|
|
- ./data:/var/lib/pymc_repeater
|