-
Notifications
You must be signed in to change notification settings - Fork 57
/
docker-compose.yml
70 lines (66 loc) · 2.14 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
version: '3'
services:
janus:
image: ivadim/fruitnanny-janus
restart: always
privileged: true
network_mode: "host"
volumes:
- ./configuration/janus:/etc/janus
- ./configuration/ssl:/etc/fruitnanny-ssl
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
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
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,profile=constrained-baseline ! 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 pulsesrc device=microphone ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! queue max-size-bytes=0 max-size-buffers=0 ! udpsink host=127.0.0.1 port=5002
command: "/audio_entry.sh"
fruitnanny:
image: ivadim/fruitnanny-app
restart: always
privileged: true
volumes:
- ./fruitnanny_config.js:/opt/fruitnanny/fruitnanny_config.js
- ./bin:/opt/fruitnanny/bin
network_mode: "host"
depends_on:
- janus
expose:
- 7000
nginx:
image: arm32v6/nginx:alpine
restart: always
network_mode: "host"
depends_on:
- janus
- fruitnanny
volumes:
- ./configuration/nginx/fruitnanny_http:/etc/nginx/conf.d/default.conf
- ./configuration/nginx/fruitnanny_https:/etc/nginx/conf.d/default-ssl.conf
- ./configuration/nginx/.htpasswd:/etc/nginx/.htpasswd
- ./configuration/ssl:/etc/fruitnanny-ssl
ports:
- "80:80"
- "443:443"