forked from rayrrr/fruitnanny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.81 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: '3'
services:
janus:
image: ivadim/fruitnanny-janus
restart: always
privileged: true
network_mode: "host"
volumes:
- ./configuration/janus:/usr/local/etc/janus
command: /usr/local/bin/janus -o
expose:
- 8088 # api http
- 8089 # api https
- 5002 # audio
- 5004 # video
gstreamer-video:
image: ivadim/fruitnanny-gstreamer
restart: always
privileged: true
network_mode: "host"
depends_on:
- janus
devices:
- "/dev/vchiq:/dev/vchiq"
command: gst-launch-1.0 -v rpicamsrc name=src preview=0 exposure-mode=night fullscreen=0 bitrate=1000000 annotation-mode=time+date annotation-text-size=20 ! video/x-h264,width=960,height=540,framerate=12/1 ! queue max-size-bytes=0 max-size-buffers=0 ! h264parse ! rtph264pay config-interval=1 pt=96 ! queue ! udpsink host=127.0.0.1 port=5004 sync=false
gstreamer-audio:
image: ivadim/fruitnanny-gstreamer
restart: always
privileged: true
network_mode: "host"
depends_on:
- janus
devices:
- "/dev/snd:/dev/snd"
command: gst-launch-1.0 -v alsasrc device=hw:1 ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! queue max-size-bytes=0 max-size-buffers=0 ! udpsink host=127.0.0.1 port=5002
fruitnanny:
image: ivadim/fruitnanny-app
restart: always
privileged: true
volumes:
- ./fruitnanny_config.js:/opt/fruitnanny/fruitnanny_config.js
network_mode: "host"
depends_on:
- janus
expose:
- 7000
nginx:
image: arm32v7/nginx
restart: always
network_mode: "host"
depends_on:
- janus
- fruitnanny
volumes:
- ./configuration/nginx/fruitnanny_http:/etc/nginx/conf.d/default.conf
- ./configuration/nginx/.htpasswd:/etc/nginx/.htpasswd
ports:
- "80:80"
- "443:443"