forked from Ribbit-Network/ribbit-network-frog-hardware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.25 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
version: '2.1'
volumes:
sense-data:
dashboard-data:
services:
gps:
privileged: true
build: "./gps"
devices:
- "/dev/ttyACM0:/dev/ttyACM0"
# Provide UART0 for gpsd to fall back to.
- "/dev/ttyAMA0:/dev/ttyAMA0"
# Allows gpsd.py to detect the current RPi version
- "/proc/device-tree/model:/proc/device-tree/model"
environment:
- "DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket"
ports:
- "2947"
labels:
io.resin.features.dbus: '1'
io.balena.features.kernel-modules: '1'
io.balena.features.balena-api: '1'
co2:
privileged: true
build: "./co2"
network_mode: host
depends_on:
- gps
expose:
- "2947"
- "7575"
labels:
io.resin.features.dbus: '1'
io.balena.features.kernel-modules: '1'
io.balena.features.supervisor-api: '1'
io.balena.features.balena-api: '1'
wifi-connect:
build: ./wifi-connect
network_mode: "host"
privileged: true
labels:
io.balena.features.dbus: '1'
io.balena.features.firmware: "1"
cap_add:
- NET_ADMIN
environment:
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"