docker-compose-env-var-test #1

Merged
dark0707 merged 4 commits from docker-compose-env-var-test into main 2024-09-05 10:12:48 -03:00
1 changed files with 14 additions and 0 deletions
Showing only changes of commit 96c6f641b8 - Show all commits

View File

@ -81,6 +81,20 @@ cd services-xbee_net
- XBNET_PROTO=tap # ["tap" | "tun"]
```
- This can also be run using the `docker run` cmd shown below.
```bash
docker run -d --name xbnet_node \
--privileged \
-e XBEE_INDEX=1 \
-e XBEE_BAUDRATE=230400 \
-e XBEE_PORT=/dev/ttyUSB0 \
-e XBNET_BASE_SUBNET=2.2.2 \
-e XBNET_INTERFACE_TYPE=router \
-e XBNET_PROTO=tap \
xbnet_node bash /entrypoint.sh
```
#### 3. To run a single xbnet node in `DEVELOPEMENT` mode, use the following cmd:
- Router mode: `sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=router`