-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.n2k.yml
76 lines (68 loc) · 1.98 KB
/
docker-compose.n2k.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
version: '3'
services:
source_1:
image: ghcr.io/mo-rise/porla:v0.2.1
network_mode: host
restart: always
command:
[
"socat UDP4-RECV:${YD_PORT_1},reuseaddr STDOUT | timestamp --epoch | to_bus 1"
]
source_2:
image: ghcr.io/mo-rise/porla:v0.2.1
network_mode: host
restart: always
command:
[
"socat UDP4-RECV:${YD_PORT_2:-70000},reuseaddr STDOUT | timestamp --epoch | to_bus 1"
]
record_raw:
image: ghcr.io/mo-rise/porla:v0.2.1
network_mode: host
restart: always
volumes:
- ${LOG_LOCATION}:/recordings
working_dir: /recordings
command: [ "from_bus 1 | record n2k_raw.log" ]
to_canboat:
image: ghcr.io/mo-rise/porla-nmea:v0.2.0
network_mode: host
restart: always
command:
[
"from_bus 1 | shuffle '{} {data}' '{data}' | analyzer -json | timestamp --epoch | to_bus 2"
]
record_canboat:
image: ghcr.io/mo-rise/porla:v0.2.1
network_mode: host
restart: always
volumes:
- ${LOG_LOCATION}:/recordings
working_dir: /recordings
command: [ "from_bus 2 | record n2k_canboat.log" ]
to_pontos:
image: ghcr.io/mo-rise/porla-pontos:v0.5.0
network_mode: host
restart: always
command:
[
"from_bus 2 | canboat2pontos ${PONTOS_VESSEL_ID} | limit 1 --key '{key} {}' | to_bus 3"
]
record_pontos:
image: ghcr.io/mo-rise/porla:v0.2.1
network_mode: host
restart: always
volumes:
- ${LOG_LOCATION}:/recordings
working_dir: /recordings
command: [ "from_bus 3 | record n2k_pontos.log" ]
sink:
image: ghcr.io/mo-rise/porla-mqtt:v0.2.1
network_mode: host
restart: always
volumes:
- ./queue:/queue
command:
[
"from_bus 3 | mqtt --host pontos.ri.se --port 443 --transport websockets --protocol 5 --tls --user ${PONTOS_MQTT_USERNAME} --password ${PONTOS_MQTT_TOKEN} --clientid ${PONTOS_MQTT_CLIENT_ID}_n2k publish --queue /queue --line '{topic} {message}'"
]