-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathorchestrator.yml
139 lines (139 loc) · 3.5 KB
/
orchestrator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
---
version: "3.3"
networks:
gamutrf:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 9000
default:
external: true
name: none
services:
compass:
restart: always
image: iqtlabs/pibackbone-compass:v0.4.5
networks:
- gamutrf
devices:
- "/dev/i2c-1:/dev/i2c-1"
ports:
- '8000:8000'
command:
# Set correct compass settings for your compass and location
- --compass=qmc5883l
- --calibration=0
- --declination=0
mqtt:
restart: always
image: iqtlabs/edgetech-mqtt-dev:latest
networks:
- gamutrf
ports:
- '1883:1883'
gamutrf:
restart: always
image: iqtlabs/gamutrf:latest
networks:
- gamutrf
ports:
- '9001:9001'
- '10000:10000'
- '10001:10001'
- '10002:10002'
cap_add:
- SYS_NICE
- SYS_RAWIO
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri/renderD128:/dev/dri/renderD128
# nvidia container toolkit etc must be installed.
# Comment out "deploy" if on non-x86 platform (e.g. Pi4)
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# if torchserve is not being used, comment out the
# dependency.
depends_on:
torchserve:
condition: service_healthy
volumes:
- '${VOL_PREFIX}:/logs'
# cause FFT wisdom to be cached.
environment:
- 'HOME=/logs'
command:
- gamutrf-scan
- --iq_zmq_addr=0.0.0.0
- --iq_zmq_port=10002
- --fft_zmq_addr=0.0.0.0
- --fft_zmq_port=10000
- --igain=40
- '--freq-start=${FREQ_START}'
- '--freq-end=${FREQ_END}'
# - --tuning_ranges=905e6-930e6,2.2e9-2.6e9,5.1e9-5.9e9
- --samp-rate=20.48e6
- --nfft=1024
- --tune-dwell-ms=0
- --tune-step-fft=512
- --db_clamp_floor=-150
- --fft_batch_size=256
- --mqtt_server=mqtt
- --no-compass
- --peak_fft_range=50
- --use_external_gps
- --use_external_heading
- --no-vkfft
- --rotate_secs=60
- --colormap=20
- --tune-jitter-hz=0
- --pretune
# - --external_gps_server=1.2.3.4
# - --external_gps_server_port=8888
- --inference_text_color=black
- --inference_output_dir=/logs/inference
- --inference_addr=0.0.0.0
- --inference_port=10001
- --inference_min_confidence=0.25
- --inference_min_db=-1e9
- --inference_text_color=black
- --n_inference=7
- --n_image=7
# - --inference_model_server=torchserve:8080
# - --inference_model_name=mini2_snr
- --iq_inference_squelch_db=-50
- --iq_inference_model_server=torchserve:8080
- --iq_inference_model_name=torchsig_model
# - --write_samples=1000000000
- --sample_dir=/logs/samples
healthcheck:
test: [CMD, "/gamutrf/bin/scanhc.sh", "9000"]
interval: 10s
timeout: 10s
retries: 3
waterfall:
restart: always
image: iqtlabs/gamutrf-waterfall:latest
networks:
- gamutrf
ports:
- '9003:9003'
volumes:
- '${VOL_PREFIX}:/logs'
command:
- gamutrf-waterfall
- --api_endpoint=gamutrf:9001
- --scanners=gamutrf:10000
- --inference_server=gamutrf
- --inference_port=10001
- --save_path=/logs/waterfall
- --port=9003
- --detection_type=narrowband
- --n_detect=1
- --width=12
- --height=6
- --min_freq=0
- --max_freq=0