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/amd64linux/arm64linux/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
confdirectory for easy configuration and persistence. - By default, both nginx and Janus services are started. If you only need Janus, modify the
commandline.
Download Official Config Files
Before customizing, it’s recommended to download the official Janus config files as templates:
- Janus official config directory @meetecho/janus-gateway/conf
- For a fixed version (e.g. v1.3.2), download here
Quick Start
-
Save the above as
docker-compose.yamland prepare your localconfdirectory with the config files (download from the links above). -
In the directory with
docker-compose.yaml, run:docker-compose up -d -
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?
Rundocker manifest inspect sucwangsr/janus-webrtc-gateway-docker:latestto see supported architectures. -
How can I change Janus configurations?
Edit the config files in your localconfdirectory 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
