/docker-streaming-server

Live streaming server

Primary LanguageDockerfile

Circle CI Size Version Commit Docker Hub

Docker Streaming Server

A robust way of streaming media content live using the NGINX web server and its RTMP module.

Installation

Builds of the image are available on Docker Hub.

docker pull codeworksio/streaming-server

Alternatively you can build the image yourself.

docker build --tag codeworksio/streaming-server \
    github.com/codeworksio/docker-streaming-server

Quickstart

Start container using:

docker run --detach --restart always \
    --name streaming-server \
    --hostname streaming-server \
    --publish 1935:1935 \
    --publish 8080:8080 \
    --publish 8443:8443 \
    codeworksio/streaming-server

Example

  1. Start the streaming server and consumer from the command line

    cd ./documents/examples
    docker-compose up -d
  2. Use Open Broadcaster Software to stream your content

    • Add media source Sources > + > Video Capture Device
    • Configure streaming server Controls > Settings > Stream
      • Stream type: Custom Streaming Server
      • URL: rtmp://localhost/live
      • Stream key: test
    • Press Start Streaming button
  3. Go to http://localhost:9999 URL address in your browser to view the media live.

See