sucwangsr/janus-webrtc-gateway-docker

By sucwangsr

โ€ขUpdated 3 months ago

https://github.com/wangsrGit119/janus-webrtc-gateway-docker

Image
Networking
Developer tools
Operating systems
1

10K+

sucwangsr/janus-webrtc-gateway-docker repository overview

build docker images - janus-webrtc-docker

โš ๏ธ Warning
If you need Janus 0.x support, please visit janus-webrtc-gateway-docker-0.xโ 

โ Project Overview

This project provides a Docker image for Janus WebRTC Gateway, making deployment and integration fast and simple. The image is based on the official Janus source code, with unnecessary modules removed, multi-platform support enabled, and optional Nginx startup.

โ Official Janus Repository

๐Ÿš€ Continuous integration and automated Docker image publishing are powered by GitHub Actions.

โ Base Image Source

This repository is based on atyenoria/janus-webrtc-gateway-dockerโ , with the following improvements:

  • โฌ†๏ธ Updated Janus version
  • ๐Ÿ—‘๏ธ Removed nginx-rtmp-module
  • ๐Ÿ—๏ธ Enhanced multi-platform support

โ Image Versions and Platform Support

  • ๐Ÿ†™ From version 1.3.1 onwards: Multi-platform (x86_64 and arm64) images are merged, so pulling the same tag will automatically match your platformโ€”no need to distinguish between architectures.
  • โช For 1.3.0 and below: x86_64 and arm64 images are published separately; you must manually pull the image matching your hardware.
โ Version Mapping
Docker Image VersionJanus VersionPlatform Support Description
1.2.0-slim/arm64 ~ 1.3.0-slim/arm641.2.0~1.3.0Separate x86_64/arm64 images
1.3.1 and above1.3.1+Multi-platform merged image (recommended)

โ How to Use

  1. Prepare Configuration Files
    ๐Ÿ“‚ Create a conf directory and place your Janus config files inside (see official conf filesโ  for reference).
  2. Write docker-compose.yml
    ๐Ÿ“ Example configuration:
services:
  janus-gateway:
    image: 'sucwangsr/janus-webrtc-gateway-docker:latest'
    # Only start janus
    #command: ["/usr/local/bin/janus", "-F", "/usr/local/etc/janus"]
    # Start nginx (port 8086) and janus together
    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"  # 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

โ Important Notes

  • โš ๏ธ Before starting, please make sure your configuration files are correct, especially with respect to YAML formatting and comments.
  • ๐Ÿ› ๏ธ If you need to customize Janus features or plugins, refer to the official documentation and adjust the configuration as needed.
  • ๐Ÿ›ก๏ธ If using network_mode: "host", ensure the host machine ports are not occupied to avoid conflicts.
  • ๐Ÿท๏ธ For multi-platform images (1.3.1 and above), it is recommended to use the :latest or a specific version tag; Docker will auto-detect your hardware architecture.
  • ๐Ÿ”„ For 1.3.0 and below, pull the -slim (x86_64) or -arm64 image according to your hardware.

โ“ For questions or feature requests, feel free to submit an Issue or PR!
โญ If you find this project helpful, please give it a Star!

Tag summary

Content type

Image

Digest

sha256:5949e2e86โ€ฆ

Size

729.5 MB

Last updated

3 months ago

docker pull sucwangsr/janus-webrtc-gateway-docker:1.4.1-muti