-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
119 lines (112 loc) · 2.9 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "3.9"
services:
data-acquisition:
image: ${DOCKER_LOGIN}/torizon-os-build-status-data-acquisition:${TAG}
networks:
- influxdbnet
- frontend
command: ["influxdb", "8086"]
depends_on:
- influxdb
#environment:
# - DEBUG=INFO # set this variable to a valid value for debugging
# - DEMO=1 # set this variable to any value for generating random data points
restart: on-failure
influxdb:
image: ${DOCKER_LOGIN}/torizon-os-build-status-influxdb:${TAG}
networks:
- influxdbnet
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=torizon
- DOCKER_INFLUXDB_INIT_PASSWORD=T0rizonEasy2Us&
- DOCKER_INFLUXDB_INIT_ORG=toradex
- DOCKER_INFLUXDB_INIT_BUCKET=jenkinsdatabucket
- DOCKER_INFLUXDB_INIT_RETENTION=60m
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=T0rizonTh3Ea&IndustrialPlatform
- INFLUXD_LOG_LEVEL=error
volumes:
- "influxdb-volume:/var/lib/influxdb2"
restart: on-failure
deploy:
resources:
limits:
memory: 1G
grafana:
image: ${DOCKER_LOGIN}/torizon-os-build-status-grafana:${TAG}
networks:
- influxdbnet
- frontend
volumes:
- "grafana-storage:/var/lib/grafana"
ports:
- "3000:3000"
depends_on:
- influxdb
- data-acquisition
restart: on-failure
weston:
image: ${DOCKER_LOGIN}/torizon-os-build-status-weston:${TAG}
# Required to get udev events from host udevd via netlink
network_mode: host
volumes:
- type: bind
source: /tmp
target: /tmp
- type: bind
source: /dev
target: /dev
- type: bind
source: /run/udev
target: /run/udev
cap_add:
- CAP_SYS_TTY_CONFIG
# Add device access rights through cgroup...
device_cgroup_rules:
# ... for /dev/tty devices
- 'c 4:* rmw'
# ... for /dev/input devices
- 'c 13:* rmw'
# ... for /dev/dri devices
- 'c 226:* rmw'
restart: on-failure
browser:
image: ${DOCKER_LOGIN}/torizon-os-build-status-browser:${TAG}
environment:
- MACHINE
#- RESTART_INTERVAL=1800 # set to override default
security_opt:
- seccomp:unconfined
networks:
- frontend
volumes:
- type: bind
source: /tmp
target: /tmp
- type: bind
source: /var/run/dbus
target: /var/run/dbus
- type: bind
source: /dev/dri
target: /dev/dri
- type: bind
source: /home/torizon/.config/tdx_br_photo
target: /tdx_br_photo
depends_on:
- weston
- grafana
- influxdb
- data-acquisition
shm_size: '256mb'
device_cgroup_rules:
# ... for /dev/dri devices
- 'c 226:* rmw'
restart: always
networks:
influxdbnet:
internal: true
frontend:
internal: false
volumes:
grafana-storage:
influxdb-storage: