forked from fangfufu/Linux-Fake-Background-Webcam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (34 loc) · 1.01 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
version: '3.7'
services:
bodypix:
image: bodypix
init: true
build:
context: ./bodypix
networks:
- fakecam
read_only: true
ports:
- ${PORT_BODYPIX}:9000
fakecam:
image: fakecam
init: true
build:
context: ./fakecam
networks:
- fakecam
read_only: true
volumes:
- ${IMAGE_BACKGROUND}:/src/background-custom:ro
- ${IMAGE_FOREGROUND}:/src/foreground-custom:ro
- ${IMAGE_FOREGROUND_MASK}:/src/foreground-mask-custom:ro
devices:
- ${VIDEO_INPUT}:/dev/video0
- ${VIDEO_OUTPUT}:/dev/video2
depends_on:
- bodypix
command: ["--bodypix-url", "http://bodypix:9000/",
"-b", "background-custom", "-f", "foreground-custom" , "-m", "foreground-mask-custom",
"--webcam-path", "/dev/video0", "--v4l2loopback-path", "/dev/video2"]
networks:
fakecam: