forked from NebraLtd/helium-rak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
110 lines (103 loc) · 2.64 KB
/
docker-compose.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
version: '2'
services:
gateway-config:
image: nebraltd/hm-config:2113f5f
depends_on:
- dbus-session
- diagnostics
environment:
- FIRMWARE_VERSION=2022.08.17.1
- FIRMWARE_SHORT_HASH=af6e602
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
- DBUS_SESSION_BUS_ADDRESS=unix:path=/session/dbus/session_bus_socket
privileged: true
network_mode: host
cap_add:
- NET_ADMIN
volumes:
- miner-storage:/var/data
- dbus:/session/dbus
labels:
io.balena.features.sysfs: 1
io.balena.features.kernel-modules: 1
io.balena.features.dbus: 1
stop_signal: SIGINT
packet-forwarder:
image: nebraltd/hm-pktfwd:e2bd70e
depends_on:
- helium-miner
restart: always
privileged: true
volumes:
- pktfwdr:/var/pktfwd
environment:
- FIRMWARE_VERSION=2022.08.17.1
- FIRMWARE_SHORT_HASH=af6e602
helium-miner:
image: nebraltd/hm-miner:arm64-3a0189c
depends_on:
- dbus-session
expose:
- "1680"
- "4467"
ports:
- "44158:44158/tcp"
- "1680:1680/udp"
volumes:
- miner-storage:/var/data
- miner-log:/var/log/miner
- pktfwdr:/var/pktfwd
- dbus:/session/dbus
cap_add:
- SYS_RAWIO
devices:
- /dev/i2c-1:/dev/i2c-1
restart: on-failure
environment:
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/session/dbus/session_bus_socket
- FIRMWARE_VERSION=2022.08.17.1
- FIRMWARE_SHORT_HASH=af6e602
diagnostics:
image: nebraltd/hm-diag:b6440b9
depends_on:
- dbus-session
environment:
- FIRMWARE_VERSION=2022.08.17.1
- FIRMWARE_SHORT_HASH=af6e602
- DIAGNOSTICS_VERSION=b6440b9
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
volumes:
- pktfwdr:/var/pktfwd
- miner-storage:/var/data
- watchdog-log:/var/watchdog
ports:
- "80:5000"
cap_add:
- SYS_RAWIO
devices:
- /dev/i2c-1:/dev/i2c-1
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyUSB1:/dev/ttyUSB1
- /dev/ttyUSB2:/dev/ttyUSB2
- /dev/ttyUSB3:/dev/ttyUSB3
privileged: true
labels:
io.balena.features.sysfs: 1
io.balena.features.procfs: 1
io.balena.features.dbus: 1
io.balena.features.supervisor-api: '1'
dbus-session:
image: balenablocks/dbus:rpi-0.0.2
restart: always
volumes:
- dbus:/session/dbus
environment:
- DBUS_ADDRESS=unix:path=/session/dbus/session_bus_socket
- FIRMWARE_VERSION=2022.08.17.1
- FIRMWARE_SHORT_HASH=af6e602
volumes:
miner-storage:
miner-log:
watchdog-log:
pktfwdr:
dbus: