-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (103 loc) · 2.96 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
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
version: '3'
services:
application:
build:
context: ./app
dockerfile: Dockerfile
restart: always
depends_on:
- nginx
- worker
ports:
- "3000:3000"
environment:
- NODE_TLS_REJECT_UNAUTHORIZED=0
- OPENVIDU_HOST=nginx:8081
- OPENVIDU_SECRET=${OPENVIDU_SECRET}
- WORKER_HOST=worker:3000
- WAIT_HOSTS=nginx:8081, worker:3000, openvidu:5443
- WAIT_TIMEOUT=120
- WAIT_SLEEP_INTERVAL=5
worker:
image: artema/facial-recognition-worker:latest
# Uncomment to build the recognition server from the source
# build:
# context: ./worker
# dockerfile: Dockerfile
platform: linux/amd64
restart: always
ports:
- 3000
openvidu:
image: openvidu/openvidu-server:2.20.0
restart: always
entrypoint: ['/usr/local/bin/entrypoint.sh']
depends_on:
- coturn
- kms
ports:
- 5443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DOMAIN_OR_PUBLIC_IP=${DOMAIN_OR_PUBLIC_IP}
- OPENVIDU_SECRET=${OPENVIDU_SECRET}
- SERVER_SSL_ENABLED=false
- SERVER_PORT=5443
- HTTP_PORT=8080
- HTTPS_PORT=8081
- KMS_URIS=["ws://kms:8888/kurento"]
- COTURN_REDIS_IP=redis
- COTURN_REDIS_PASSWORD=${OPENVIDU_SECRET}
- COTURN_IP=${DOMAIN_OR_PUBLIC_IP}
kms:
image: kurento/kurento-media-server:6.16.0
restart: always
ulimits:
core: -1
ports:
- 8888
environment:
- KMS_MIN_PORT=40000
- KMS_MAX_PORT=57000
- KURENTO_LOG_FILE_SIZE=100
- KURENTO_LOGS_PATH=/opt/openvidu/kurento-logs
redis:
image: openvidu/openvidu-redis:3.0.0
restart: always
ports:
- 6379
environment:
- REDIS_PASSWORD=${OPENVIDU_SECRET}
- REDIS_BINDING=redis
coturn:
image: openvidu/openvidu-coturn:5.0.0
restart: always
depends_on:
- redis
ports:
- 3478
environment:
- REDIS_IP=redis
- TURN_LISTEN_PORT=3478
- DB_NAME=0
- DB_PASSWORD=${OPENVIDU_SECRET}
- MIN_PORT=57001
- MAX_PORT=65535
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
restart: always
depends_on:
- openvidu
ports:
- "8080:8080"
- "8081:8081"
environment:
- DOMAIN_OR_PUBLIC_IP=${DOMAIN_OR_PUBLIC_IP}
- CERTIFICATE_TYPE=selfsigned
- PROXY_HTTP_PORT=8080
- PROXY_HTTPS_PORT=8081
- WITH_APP=false
- PUBLIC_IP=127.0.0.1