-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
90 lines (86 loc) · 3.14 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
version: '2.1'
services:
tools:
build: ./tools
privileged: true
restart: always
ports:
- 3000
labels:
io.balena.features.dbus: '1'
io.balena.features.kernel-modules: '1'
io.balena.features.balena-api: 1
volumes:
- 'shared-data:/var/data'
- 'shared-media:/var/media'
ei-processing:
build: ./ei-processing
privileged: true
restart: always
network_mode: host
container_name: ei-processing
ports:
- 8080
depends_on:
- tools
labels:
io.balena.features.dbus: '1'
io.balena.features.kernel-modules: '1'
volumes:
- 'shared-data:/var/data'
- 'shared-media:/var/media'
environment:
- UDEV=1
devices:
- '/dev:/dev'
web:
build: ./web
container_name: web
privileged: true
restart: always
network_mode: host
labels:
io.balena.features.dbus: '1'
io.balena.features.kernel-modules: '1'
ports:
- 80
depends_on:
- ei-processing
volumes:
- 'shared-data:/var/data'
- 'shared-media:/var/media'
links:
- ei-processing
hostname:
image: balenablocks/hostname
restart: no # Required to avoid container restarting indefinitely
labels:
io.balena.features.supervisor-api: 1 # Required to interact with the supervisor
environment:
SET_HOSTNAME: birdwatcher
wifi-connect:
build: ./wifi-connect
restart: no
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"
PORTAL_SSID: "BIRD-WIFI-AP"
PORTAL_LISTENING_PORT: 81
supervisor:
build: ./supervisor
restart: always
network_mode: host
privileged: true
cap_add:
- NET_ADMIN
labels:
io.balena.features.supervisor-api: 1
volumes:
shared-data:
shared-media: