openvidu/openvidu-server/docker/openvidu-docker-compose/docker-compose.yml

84 lines
2.6 KiB
YAML
Raw Normal View History

2020-03-30 18:55:06 +02:00
# ------------------------------------------------------------------------------
#
# DO NOT MODIFY THIS FILE !!!
#
# Configuration properties should be specified in .env file
#
2020-04-06 11:59:05 +02:00
# Application based on OpenVidu should be specified in
2020-03-30 18:55:06 +02:00
# docker-compose.override.yml file
#
2020-04-14 14:21:18 +02:00
# This docker-compose file coordinates all services of OpenVidu CE Platform.
2020-03-30 18:55:06 +02:00
#
# This file will be overridden when update OpenVidu Platform
#
# ------------------------------------------------------------------------------
2020-03-24 12:08:36 +01:00
version: '3.1'
services:
2020-03-30 18:55:06 +02:00
openvidu-server:
2020-04-17 13:36:36 +02:00
image: openvidu/openvidu-server:2.13.0-beta6
restart: on-failure
network_mode: host
2020-04-17 13:36:36 +02:00
entrypoint: ['/bin/bash', '-c', 'export COTURN_IP=`curl --silent ifconfig.co`; /usr/local/bin/entrypoint.sh']
2020-03-24 17:18:37 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${OPENVIDU_RECORDING_PATH}:${OPENVIDU_RECORDING_PATH}
2020-04-16 10:41:32 +02:00
- ${OPENVIDU_RECORDING_CUSTOM_LAYOUT}:${OPENVIDU_RECORDING_CUSTOM_LAYOUT}
- ${OPENVIDU_CDR_PATH}:${OPENVIDU_CDR_PATH}
2020-04-06 11:59:05 +02:00
env_file:
- .env
2020-03-24 12:32:48 +01:00
environment:
- SERVER_SSL_ENABLED=false
- SERVER_PORT=5443
- OPENVIDU_RECORDING=true
2020-04-17 13:36:36 +02:00
- OPENVIDU_RECORDING_COMPOSED_URL=https://${OPENVIDU_DOMAIN_OR_PUBLIC_IP}/dashboard
- KMS_URIS=["ws://localhost:8888/kurento"]
- COTURN_REDIS_IP=127.0.0.1
2020-03-24 12:32:48 +01:00
kms:
2020-04-17 13:36:36 +02:00
image: ${KMS_IMAGE:-kurento/kurento-media-server:6.13.1}
2020-04-13 14:29:50 +02:00
restart: always
2020-03-24 12:32:48 +01:00
network_mode: host
ulimits:
core: -1
volumes:
- /core:/core
2020-03-24 12:32:48 +01:00
environment:
2020-03-27 13:21:26 +01:00
- KMS_MIN_PORT=40000
- KMS_MAX_PORT=57000
2020-04-06 11:59:05 +02:00
- GST_DEBUG=${KMS_DEBUG_LEVEL:-}
2020-03-24 12:32:48 +01:00
2020-03-29 01:10:10 +01:00
redis:
2020-03-24 17:18:37 +01:00
image: redis:5.0.7
2020-04-16 11:53:32 +02:00
restart: always
network_mode: host
2020-03-24 12:08:36 +01:00
2020-03-29 01:10:10 +01:00
coturn:
2020-03-26 17:37:51 +01:00
image: openvidu/openvidu-coturn:1.0.0-beta1
restart: on-failure
2020-03-24 12:08:36 +01:00
network_mode: host
environment:
- REDIS_IP=127.0.0.1
2020-03-24 12:08:36 +01:00
- TURN_LISTEN_PORT=3478
- DB_NAME=0
- DB_PASSWORD=turn
2020-03-27 13:21:26 +01:00
- MIN_PORT=57001
2020-03-24 12:08:36 +01:00
- MAX_PORT=65535
2020-04-06 11:59:05 +02:00
2020-03-29 01:10:10 +01:00
nginx:
2020-04-17 13:36:36 +02:00
image: openvidu/openvidu-proxy:1.0.0-beta5
restart: on-failure
2020-03-24 12:08:36 +01:00
network_mode: host
volumes:
2020-03-27 13:21:26 +01:00
- ./certificates:/etc/letsencrypt
- ./owncert:/owncert
2020-04-09 17:34:44 +02:00
- /opt/openvidu/custom-layout:/opt/openvidu/custom-layout
2020-04-06 11:59:05 +02:00
environment:
- DOMAIN_OR_PUBLIC_IP=${OPENVIDU_DOMAIN_OR_PUBLIC_IP}
- CERTIFICATE_TYPE=${CERTIFICATE_TYPE}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- PROXY_MODE=CE
- WITH_DEMOS=true