26 lines
603 B
YAML
26 lines
603 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
xbnet-node:
|
|
build: .
|
|
container_name: xbnet_node
|
|
privileged: true
|
|
environment:
|
|
- XBEE_INDEX=1
|
|
- XBEE_BAUDRATE=230400
|
|
- XBEE_PORT=/dev/ttyUSB0
|
|
- XBNET_BASE_SUBNET=172.18.0
|
|
- XBNET_INTERFACE_TYPE=router
|
|
- XBNET_PROTO=tun
|
|
command: bash /entrypoint.sh
|
|
networks:
|
|
eth0:
|
|
ipv4_address: 172.18.0.100
|
|
|
|
networks:
|
|
# Assigning a static IP to eth0 interface, so that it stays the same everytime the container is started
|
|
eth0:
|
|
ipam:
|
|
config:
|
|
- subnet: 172.18.0.0/24
|
|
gateway: 172.18.0.1 |