2024-12-26 18:59:26 +00:00
|
|
|
|
# USB-Based Meshtastic container-node!
|
|
|
|
|
|
|
|
|
|
# Copy .env.example to .env and set the USB_DEVICE and CONFIG_PATH variables
|
2022-11-06 19:19:49 +00:00
|
|
|
|
|
|
|
|
|
services:
|
2022-11-07 19:28:37 +00:00
|
|
|
|
meshtastic-node:
|
|
|
|
|
build: .
|
2024-12-26 18:59:26 +00:00
|
|
|
|
container_name: meshtasticd
|
|
|
|
|
|
|
|
|
|
# Pass USB device through to the container
|
|
|
|
|
devices:
|
|
|
|
|
- "${USB_DEVICE}"
|
|
|
|
|
|
|
|
|
|
# Mount local config file and named volume for data persistence
|
|
|
|
|
volumes:
|
|
|
|
|
- "${CONFIG_PATH}:/etc/meshtasticd/config.yaml:ro"
|
|
|
|
|
- meshtastic_data:/var/lib/meshtasticd
|
|
|
|
|
|
|
|
|
|
# Forward the container’s port 4403 to the host
|
|
|
|
|
ports:
|
|
|
|
|
- 4403:4403
|
|
|
|
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
meshtastic_data:
|