2024-09-04 14:26:59 -03:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
xbnet-node:
|
|
|
|
build: .
|
|
|
|
container_name: xbnet_node
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
- XBEE_INDEX=1
|
|
|
|
- XBEE_BAUDRATE=230400
|
|
|
|
- XBEE_PORT=/dev/ttyUSB0
|
2024-09-06 17:07:40 -03:00
|
|
|
- XBNET_BASE_SUBNET=2.2.2
|
2024-09-04 14:26:59 -03:00
|
|
|
- XBNET_INTERFACE_TYPE=router
|
2024-09-06 17:07:40 -03:00
|
|
|
- XBNET_PROTO=tap
|
2024-09-05 10:11:34 -03:00
|
|
|
command: bash /entrypoint.sh
|
2024-09-06 17:07:40 -03:00
|
|
|
network_mode: host
|
|
|
|
# networks:
|
|
|
|
# eth0:
|
|
|
|
# ipv4_address: 10.10.10.100
|
2024-09-05 10:11:34 -03:00
|
|
|
|
2024-09-06 17:07:40 -03:00
|
|
|
# networks:
|
|
|
|
# # Assigning a static IP to eth0 interface, so that it stays the same everytime the container is started
|
|
|
|
# eth0:
|
|
|
|
# ipam:
|
|
|
|
# config:
|
|
|
|
# - subnet: 10.10.10.0/24
|
|
|
|
# gateway: 10.10.10.1
|