-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (40 loc) · 988 Bytes
/
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
version: '2.1'
services:
controller:
build:
context: ./backend
dockerfile: Dockerfile.template
restart: always
network_mode: "host"
volumes:
- 'asset_share:/app/asset_share'
- 'controller_db:/app/db'
- 'file_storage:/app/storage'
labels:
io.balena.features.dbus: '1'
io.balena.features.supervisor-api: '1'
io.balena.features.balena-socket: '1'
portainer: hidden
depends_on:
- "frontend"
cap_add:
- NET_ADMIN
environment:
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.template
restart: always
ports:
- "80:8081"
volumes:
- 'asset_share:/app/public/interface/asset_share'
- 'file_storage:/app/public/storage'
labels:
portainer: hidden
privileged: true # Required for USB access
volumes:
asset_share:
controller_db:
file_storage: