Skip to content

Instantly share code, notes, and snippets.

@rjoffray
Last active July 16, 2019 21:56
Show Gist options
  • Select an option

  • Save rjoffray/bc151ae7d04702407e58f07e6ae69eb5 to your computer and use it in GitHub Desktop.

Select an option

Save rjoffray/bc151ae7d04702407e58f07e6ae69eb5 to your computer and use it in GitHub Desktop.
---
version: '3'
volumes:
app-persistent-storage:
services:
hd-sec-0:
image: index.docker.io/oaklabs/hd-sec:0.0.4
network_mode: host
ports:
- "9000-9999:9000-9999"
environment:
- LIGHTS_HOST=localhost:9204
- NODE_ENV=production
devices:
- /dev/bus/usb
- /dev/dri
- /dev/input
- /dev/snd
# The following devices are included because they were present
# at Application.Install time. The application cannot start if
# they are disconnected.
- /dev/ttyACM0
- /dev/video0
volumes:
- /dev/oak:/dev/oak
- /dev/shm:/dev/shm
- /run/udev:/run/udev
- /tmp/.X11-unix:/tmp/.X11-unix
- app-persistent-storage:/persistent
component-oak-lights-1:
image: index.docker.io/oaklabs/component-oak-lights:0.0.3
network_mode: host
ports:
- "9000-9999:9000-9999"
environment:
- NODE_ENV=production
- PORT=9204
devices:
- /dev/bus/usb
- /dev/dri
- /dev/input
- /dev/snd
# The following devices are included because they were present
# at Application.Install time. The application cannot start if
# they are disconnected.
- /dev/ttyACM0
- /dev/video0
volumes:
- /dev/oak:/dev/oak
- /dev/shm:/dev/shm
- /run/udev:/run/udev
- /tmp/.X11-unix:/tmp/.X11-unix
- app-persistent-storage:/persistent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment