forked from open-edge-platform/edge-ai-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
126 lines (124 loc) · 3.16 KB
/
Copy pathcompose.yml
File metadata and controls
126 lines (124 loc) · 3.16 KB
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
120
121
122
123
124
125
126
x-vippet: &vippet
image: docker.io/intel/vippet-app:${DOCKER_TAG}
build:
context: .
target: ${TARGET:-prod}
dockerfile: vippet/Dockerfile
args:
http_proxy:
https_proxy:
no_proxy:
ports:
- "7860:7860"
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--output", "/dev/null", "http://localhost:7860/"]
interval: 30s
timeout: 10s
retries: 5
restart: on-failure:5
environment:
GST_DEBUG: "1"
TZ: America/Los_Angeles
MODELS_PATH: /models/output
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
volumes:
- collector-signals:/home/dlstreamer/vippet/.collector-signals
- ./shared/models/:/models
services:
models:
profiles: [do-not-start]
image: docker.io/intel/vippet-models:${DOCKER_TAG}
build:
context: .
dockerfile: models/Dockerfile
args:
http_proxy:
https_proxy:
no_proxy:
stdin_open: true
tty: true
container_name: models
volumes:
- ./shared/models/:/models
environment:
- MODELS_PATH=/models/output
- MODEL_INSTALLATION=${MODEL_INSTALLATION:-once}
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy}
command: './model_manager.sh'
vippet-cpu:
<<: *vippet
container_name: vippet
profiles: [cpu]
vippet-gpu:
<<: *vippet
container_name: vippet
group_add:
- ${RENDER_GROUP_ID}
devices:
- "/dev/dri:/dev/dri"
profiles: [gpu]
vippet-npu:
<<: *vippet
container_name: vippet
group_add:
- ${RENDER_GROUP_ID}
devices:
- "/dev/dri:/dev/dri"
- "/dev/accel:/dev/accel"
profiles: [npu]
collector:
image: docker.io/intel/vippet-collector:${DOCKER_TAG}
build:
context: ./collector
dockerfile: Dockerfile
args:
http_proxy:
https_proxy:
no_proxy:
container_name: collector
privileged: true
devices:
- "/sys:/sys"
- "/dev:/dev"
- "/run:/run"
- "/proc:/proc"
network_mode: host
ipc: host
pid: host
volumes:
- "collector-signals:/app/.collector-signals"
restart: on-failure:5
environment:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
videogenerator:
profiles: [do-not-start]
image: docker.io/intel/vippet-videogenerator:${DOCKER_TAG}
build:
context: video_generator
dockerfile: Dockerfile
args:
http_proxy:
https_proxy:
no_proxy:
container_name: videogenerator
volumes:
- "./shared/videos:/usr/src/app/output"
- "./video_generator/config.json:/usr/src/app/config.json"
- "./video_generator/background.gif:/usr/src/app/background.gif"
- "./video_generator/images:/usr/src/app/images"
environment:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
volumes:
collector-signals:
driver: local
driver_opts:
type: tmpfs
device: tmpfs