meshtasticd-docker: simplify, add USB compose (#5662)

This commit is contained in:
Austin
2024-12-26 12:59:26 -06:00
committed by GitHub
co-authored by GitHub
parent b12aa3f360
commit 33d2f78d21
4 changed files with 61 additions and 63 deletions
+21 -8
View File
@@ -1,13 +1,26 @@
version: "3.7"
# USB-Based Meshtastic container-node!
# Copy .env.example to .env and set the USB_DEVICE and CONFIG_PATH variables
services:
meshtastic-node:
build: .
deploy:
mode: replicated
replicas: 4
networks:
- mesh
container_name: meshtasticd
networks:
mesh:
# 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 containers port 4403 to the host
ports:
- 4403:4403
restart: unless-stopped
volumes:
meshtastic_data: