Merge pull request #1912 from meshtastic/docker-compose

Added docker compose multiple nodes example
This commit is contained in:
Ben Meadors 2022-11-08 07:12:36 -06:00 committed by GitHub
commit a695726f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -12,4 +12,4 @@ FROM frolvlad/alpine-glibc
WORKDIR /root/
COPY --from=builder /firmware/release/meshtasticd_linux_amd64 ./
RUN apk --update add --no-cache g++
CMD ["./meshtasticd_linux_amd64"]
CMD sh -cx "./meshtasticd_linux_amd64 --hwid '$RANDOM'"

View File

@ -1,5 +1,13 @@
version: "3.7"
services:
meshtastic-device:
meshtastic-node:
build: .
deploy:
mode: replicated
replicas: 80
networks:
- mesh
networks:
mesh: