/
/
/
Ansible role that deploys my edge device with connectivity containers. Currently it deploys a thread border router via the zbt-1 dongle by Home Assistant, a zigbee2MQTT interface using the Sonoff zigbee dongle and a DSMR reader with a generic P1 to USB converter.
1services:
2 otbr:
3 image: "{{ otbr.image }}"
4 container_name: otbr
5 network_mode: host
6 privileged: true
7 restart: unless-stopped
8 environment:
9 - OTBR_BORDER_ROUTING_ENABLE={{ '1' if otbr.enable_border_routing else '0' }}
10 - OTBR_BACKBONE_ROUTER_ENABLE={{ '1' if otbr.enable_backbone_router else '0' }}
11 - OTBR_NAT64_ENABLE={{ '1' if otbr.nat64 else '0' }}
12 - OTBR_WEB_ENABLE=1
13 - OTBR_AGENT_OPTS=-v
14 command:
15 - "--radio-url={{ otbr.radio_url | default('spinel+hdlc://'+otbr.rcp_symlink+'?uart-baudrate=460800', true) }}"
16 devices:
17 - "{{ otbr.rcp_symlink }}:{{ otbr.rcp_symlink }}"
18 volumes:
19 - otbr_data:/var/lib/otbr
20volumes:
21 otbr_data: {}
22