Getting Started with Docker
Getting Started with default settings
OvenMediaEngine provides the Docker image from AirenSoft's Docker Hub (airensoft/ovenmediaengine) repository. After installing Docker, you can simply run the following command:
If a certificate is not installed in OvenMediaEngine, some functions (WebRTC Ingest, LLHLS playback) may not work due to the browser's security policy. Please refer to Complex Configuration section to install the certificate.
You can set the following environment variables.
Environment Variables
Env | Default Value |
---|---|
OME_HOST_IP | * |
OME_ORIGIN_PORT | 9000 |
OME_RTMP_PROV_PORT | 1935 |
OME_SRT_PROV_PORT | 9999/udp |
OME_MPEGTS_PROV_PORT | 4000/udp |
OME_LLHLS_STREAM_PORT | 3333 |
OME_LLHLS_STREAM_TLS_PORT | 3334 |
OME_WEBRTC_SIGNALLING_PORT | 3333 |
OME_WEBRTC_SIGNALLING_TLS_PORT | 3334 |
OME_WEBRTC_TCP_RELAY_PORT | 3478 |
OME_WEBRTC_CANDIDATE_PORT | 10000-10004/udp |
Getting Started with Complex Configuration
When you need to install a certificate in OME or apply a complex configuration, you can do it by following the procedure below to modify Server.xml inside Docker.
OvenMediaEngine docker container loads configuration files from the following path.
Type | Path / Description |
---|---|
Server.xml |
|
Logger.xml |
|
Server Certificate |
|
Private Key |
|
CA Bundle |
|
There are many ways to change files inside a Docker container, but this document describes how to change them using Docker's bind mounts.
Setup
Create the directories
Copy the default configurations from Docker container
Copy the certificate files to the directory
Copy your PEM certificate files to the path below if you need to enable TLS. The destination file names must match if using the default configuration. If you want to change the file name, you can do so by editing the Server.xml configuration file. See TLS Encryption for details.
Modify Server.xml if necessary
Running
Run Docker Container
The command below will make your OvenMediaEngine docker container run with $OME_DOCKER_HOME/conf/Server.xml and $OME_DOCKER_HOME/conf/Logger.xml files on your host. It will also create $OME_DOCKER_HOME/logs/ovenmediaengine.log file.
Check the log file
Restart Docker Container
Stop and Remove Container
Last updated