# ------------------------------------------------------------------------------
#
#    DO NOT MODIFY THIS FILE !!!
#
#    Configuration properties should be specified in .env file
#
#    This docker-compose file coordinates all services of OpenVidu CE Platform.
#
#    Openvidu Version: 2.20.0
#
#    Installation Mode: On Premises
#
# ------------------------------------------------------------------------------

version: '3.1'

services:
    media-node-controller:
        image: openvidu/media-node-controller:6.0.0-dev2
        restart: always
        ulimits:
            core: -1
        entrypoint: ['/bin/sh', '-c', '/beats/copy_config_files.sh && /usr/local/bin/entrypoint.sh']
        environment:
            - KMS_IMAGE=kurento/kurento-media-server:6.16.0
            - MEDIASOUP_IMAGE=openvidu/mediasoup-controller:2.21.0-dev7
            - METRICBEAT_IMAGE=docker.elastic.co/beats/metricbeat-oss:7.8.0
            - FILEBEAT_IMAGE=docker.elastic.co/beats/filebeat-oss:7.8.0
            - OPENVIDU_RECORDING_IMAGE=openvidu/openvidu-recording:2.19.0
            - NO_COLOR=true
        ports:
            - 3000:3000
        volumes:
            - /opt/openvidu/recordings:/opt/openvidu/recordings
            - /opt/openvidu/beats:/opt/openvidu/beats
            - /var/run/docker.sock:/var/run/docker.sock
            - /opt/openvidu/kurento-logs:/opt/openvidu/kurento-logs
            - ./beats:/beats
        logging:
            options:
                max-size: "100M"
