-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 858 Bytes
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
version: "2.3"
services:
bodypix:
runtime: nvidia
build:
context: ./bodypix
dockerfile: Dockerfile
image: bodypix
restart: always
ports:
- 9000:9000
command: node /src/app.js
devices:
- /dev/nvidia0:/dev/nvidia0
fakecam:
build:
context: ./fakecam
dockerfile: Dockerfile
image: fakecam
restart: always
links:
- bodypix
command: python fake.py
environment:
ACTUAL_CAMERA: "/dev/video0"
FAKE_CAMERA: "/dev/video20"
CAMERA_WIDTH: "640"
CAMERA_HEIGHT: "360"
#CAMERA_WIDTH: "1280"
#CAMERA_HEIGHT: "720"
CAMERA_FPS: "24"
BODYPIX_URL: http://bodypix:9000
volumes:
- ./data:/data
devices:
- "/dev/video0:/dev/video0"
- "/dev/video20:/dev/video20"
networks:
fakecam:
driver: bridge