forked from balena-io-experimental/balena-cncjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (55 loc) · 1.1 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
version: "2"
volumes:
cnc-config:
services:
cncjs:
build: ./cncjs
# Add additional devices to this list if required.
devices:
- "/dev/ttyAMA0:/dev/ttyAMA0"
- "/dev/ttyUSB0:/dev/ttyUSB0"
- "/dev/i2c-1:/dev/i2c-1"
cap_add:
- SYS_RAWIO
- SYS_RESOURCE
- SYS_ADMIN
ports:
- "8000:8000"
volumes:
- "cnc-config:/config"
network_mode: host
# mjpg-streamer:
# build: ./mjpg-streamer
# privileged: true
# expose:
# - "8080"
#code-server:
# build: ./code-server
# expose:
# - "8080"
# g2core:
# build: ./g2core
# proxy:
# build: ./proxy
# depends_on:
# - cncjs
# ports:
# - "80:80"
# mdns:
# build: ./mdns
# network_mode: host
# depends_on:
# - proxy
# cap_add:
# - SYS_RESOURCE
# - SYS_ADMIN
# security_opt:
# - "apparmor:unconfined"
# tmpfs:
# - /run
# - /sys/fs/cgroup
# labels:
# io.balena.features.dbus: "1"
# io.balena.features.supervisor-api: "1"
# environment:
# MDNS_TLD: local