2023-08-20 12:44:23 +00:00
|
|
|
version: '3'
|
|
|
|
|
services:
|
2023-08-22 02:21:38 +00:00
|
|
|
mmrelayapp:
|
2023-08-21 21:20:08 +00:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile_app
|
2023-08-21 22:05:11 +00:00
|
|
|
image: mmrelayapp:latest
|
2023-08-21 21:20:08 +00:00
|
|
|
container_name: mmrelay-app
|
2023-08-21 22:05:11 +00:00
|
|
|
restart: unless-stopped
|
2023-08-22 00:29:47 +00:00
|
|
|
user: 1000:1000
|
2023-08-21 21:20:08 +00:00
|
|
|
volumes:
|
|
|
|
|
- mesh_volume:/home/mesh
|
|
|
|
|
networks:
|
|
|
|
|
- mesh_net
|
2023-08-22 00:29:47 +00:00
|
|
|
command: sh -c 'echo "export PATH=/home/mesh/.local/bin:\$PATH" >> /home/mesh/.bashrc'
|
2023-08-21 22:05:11 +00:00
|
|
|
entrypoint: ["sh", "-c", "sleep 30 && python app/main.py"]
|
2023-08-21 21:20:08 +00:00
|
|
|
|
2023-08-22 02:21:38 +00:00
|
|
|
mmrelaynode:
|
2023-08-22 00:29:47 +00:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile_node
|
|
|
|
|
image: mmrelaynode:latest
|
|
|
|
|
container_name: mmrelay-node
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
user: 1000:1000
|
|
|
|
|
networks:
|
|
|
|
|
- mesh_net
|
2023-08-22 02:21:38 +00:00
|
|
|
# volumes:
|
|
|
|
|
# - mesh_volume:/home/mesh
|
2023-08-22 00:29:47 +00:00
|
|
|
ports:
|
|
|
|
|
- 4403:4403
|
2023-08-22 02:21:38 +00:00
|
|
|
entrypoint: ["sh", "-cx", "/usr/bin/meshtasticd -d /home/mesh --hwid '12345'"] #change to your own hardware id
|
2023-08-22 00:29:47 +00:00
|
|
|
|
2023-08-21 21:20:08 +00:00
|
|
|
networks:
|
|
|
|
|
mesh_net:
|
2023-08-21 12:52:16 +00:00
|
|
|
volumes:
|
|
|
|
|
mesh_volume:
|