4
0
forked from Mirror/wfb-ng
wfb-ng/docker-compose.yml

66 lines
1.9 KiB
YAML

version: '3.8'
services:
drone:
profiles: [drone,]
build: ./
environment:
- DRONE_STREAM_COUNT=3
- DRONE_STREAM_1_NAME=video
- DRONE_STREAM_1_RX=None
- DRONE_STREAM_1_TX=0x00
- DRONE_STREAM_1_SERVICE_TYPE=udp_direct_tx
- DRONE_STREAM_1_PROFILES=base,drone_base,video,drone_video
- DRONE_STREAM_2_NAME=mavlink
- DRONE_STREAM_2_RX=0x90
- DRONE_STREAM_2_TX=0x10
- DRONE_STREAM_2_SERVICE_TYPE=mavlink
- DRONE_STREAM_2_PROFILES=base,drone_base,mavlink,drone_mavlink
- DRONE_STREAM_3_NAME=tunnel
- DRONE_STREAM_3_RX=0xa0
- DRONE_STREAM_3_TX=0x20
- DRONE_STREAM_3_SERVICE_TYPE=tunnel
- DRONE_STREAM_3_PROFILES=base,drone_base,tunnel,drone_tunnel
ground_station:
profiles: [gs,]
build: ./
environment:
- GS_STREAM_COUNT=3
- GS_STREAM_1_NAME=video
- GS_STREAM_1_RX=0x00
- GS_STREAM_1_TX=None
- GS_STREAM_1_SERVICE_TYPE=udp_direct_rx
- GS_STREAM_1_PROFILES=base,gs_base,video,gs_video
- GS_STREAM_2_NAME=mavlink
- GS_STREAM_2_RX=0x10
- GS_STREAM_2_TX=0x90
- GS_STREAM_2_SERVICE_TYPE=mavlink
- GS_STREAM_2_PROFILES=base,gs_base,mavlink,gs_mavlink
- GS_STREAM_3_NAME=tunnel
- GS_STREAM_3_RX=0x20
- GS_STREAM_3_TX=0xa0
- GS_STREAM_3_SERVICE_TYPE=tunnel
- GS_STREAM_3_PROFILES=base,gs_base,tunnel,gs_tunnel
cluster_service:
profiles: [cluster,]
command: /usr/bin/wfb-server --profiles gs --cluster ssh
build: ./
environment:
- WIFI_CHANNEL=161
- WIFI_REGION=US
- WIFI_TXPOWER=1500
- "CLUSTER_NODES='192.168.1.1:phy1-mon0'"
- SSH_USER=root
- SSH_PORT=22
- SSH_KEY=/etc/openwrt_key
- SERVER_ADDRESS=192.168.1.100
- CUSTOM_SNIPPETS="
[gs_mavlink]
peer = 'connect://127.0.0.1:14550'
[gs_video]
peer = 'connect://127.0.0.1:5600'
"