Janus WebRTC Gateway Multi-Platform Docker Image Repository & Usage Guide

This repository, janus-webrtc-gateway-docker, is dedicated to building and publishing multi-platform Docker images (x86_64/amd64, arm64, armv7, etc.) for Janus WebRTC Gateway. Images are automatically pushed to Docker Hub, making it easy to deploy on mainstream servers and embedded devices!


Multi-Platform Image Highlights

  • Images are automatically built and published to Docker Hub, covering mainstream servers and edge/embedded devices.
  • Supported architectures:
    • linux/amd64
    • linux/arm64
    • linux/arm/v7
  • Every repository update triggers a new multi-platform image build and push.

Docker Hub Image

docker pull sucwangsr/janus-webrtc-gateway-docker:latest

Recommended Usage (docker-compose)

We recommend the following docker-compose.yaml configuration. The image will automatically adapt to your platform. This setup supports custom config mounting, simultaneous launch of both nginx and janus services, and uses host networking for easy port exposure.

services:

  #
  # janus-gateway
  #
  janus-gateway:
    image: 'sucwangsr/janus-webrtc-gateway-docker:latest'
    # To only start janus, you can use:
    #command: ["/usr/local/bin/janus", "-F", "/usr/local/etc/janus"]
    # By default, start both nginx (port 8086) and janus:
    command: ["sh", "-c", "nginx && /usr/local/bin/janus -F /usr/local/etc/janus"]
    network_mode: "host"
    volumes:
      - "./conf/janus.transport.http.jcfg:/usr/local/etc/janus/janus.transport.http.jcfg"  # Enable adminapi config
      - "./conf/janus.jcfg:/usr/local/etc/janus/janus.jcfg"
      - "./conf/janus.eventhandler.sampleevh.jcfg:/usr/local/etc/janus/janus.eventhandler.sampleevh.jcfg"
    restart: always
  • network_mode: "host" allows direct use of host ports. Make sure there are no port conflicts.
  • Mount your custom config files from the local conf directory for easy configuration and persistence.
  • By default, both nginx and Janus services are started. If you only need Janus, modify the command line.

Download Official Config Files

Before customizing, it’s recommended to download the official Janus config files as templates:


Quick Start

  1. Save the above as docker-compose.yaml and prepare your local conf directory with the config files (download from the links above).

  2. In the directory with docker-compose.yaml, run:

    docker-compose up -d
    
  3. Docker will automatically pull the image for your platform and start the service—no need to worry about architecture selection!


FAQ

  • How do I check which platforms are supported?
    Run docker manifest inspect sucwangsr/janus-webrtc-gateway-docker:latest to see supported architectures.

  • How can I change Janus configurations?
    Edit the config files in your local conf directory and restart the container.

  • How to report issues or contribute?
    Please use GitHub Issues for feedback and contributions.


Closing

This repository is continuously maintained for Janus WebRTC Gateway multi-platform images. Stars, feedback, and contributions are welcome!
Docker Hub: https://hub.docker.com/r/sucwangsr/janus-webrtc-gateway-docker

1 Like