balena-supervisor/docker-compose.yml
Christina Wang 7531685b4f Use compose long syntax for /lib/firmware and /lib/modules
As /lib/firmware and /lib/modules are always expected to be in the host
filesystem, using long syntax ensures that the Supervisor container
cannot start on an invalid host. (Long syntax volumes error when the host
path does not exist, whereas short syntax volumes create the host path.)

Change-type: major
Closes: #1965
Signed-off-by: Christina Wang <christina@balena.io>
2022-06-14 11:00:18 -07:00

18 lines
524 B
YAML

version: '2.1'
services:
# This service can only be named `main` or `balena-supervisor` as older
# devices will keep relying on the `/v6/supervisor_release` endpoint that
# identifies the supervisor image by that service name.
balena-supervisor:
build: ./
privileged: true
tty: true
restart: always
network_mode: host
labels:
io.balena.features.balena-api: '1'
io.balena.features.dbus: '1'
io.balena.features.balena-socket: '1'
io.balena.features.kernel-modules: '1'