Skip to content

cake654326/srs3-docker

Repository files navigation



SRS 3.0 Docker Image

This repository includes a demo of Dockerfile to build a docker image contains SRS Media Server Verson 3 on Cent OS.

If you want to use the image directly,you can push a ready-made image(See it on Docker Hub).Feel free to try it!

Pull command:

docker pull zhouweitong/srs3-docker

Docker command sample:

docker run -d \
		-p 554:554 \
		-p 1935:1935 \
		-p 1985:1985 \
		-p 2037:2037 \
		-p 2038:2038 \
		-p 2039:2039 \
		-p 2040:2040 \
		-p 8080:8080 \
		-p 8081:8081 \
		-p 8936:8936 \
		-p 50000-51000:50000-51000 \
		-p 57200-57300:57200-57300 \
		zhouweitong/srs3-docker

The command equals:

docker run -d \
		-p 554:554 \
		-p 1935:1935 \
		-p 1985:1985 \
		-p 2037:2037 \
		-p 2038:2038 \
		-p 2039:2039 \
		-p 2040:2040 \
		-p 8080:8080 \
		-p 8081:8081 \
		-p 8936:8936 \
		-p 50000-51000:50000-51000 \
		-p 57200-57300:57200-57300 \
		zhouweitong/srs3-docker \
		/bin/bash -c /root/start.sh

File settings:

/root/start.sh is a soft link of /root/shell/start_srs.sh ,which is a sample starting script using srs itself.
/root/stop.sh is a soft link of /root/shell/stop.sh ,which is a sample stoping script.
Other shell scripts for launching single program are included in the /root/shell folder.
You can change them according to your own condition.

Volume setting:

/root/software is the folder for the program files.
The two sub folders go-oryx/conf and srs/trunk/conf are the configuration files folder,which are mounted by default.
/root/logs is the folder for all the log files,and is mounted by default.
/root/sample_conf is the folder for sample configuration files,and it's mounted by default.
/root/shell is the folder for the sample starting&stoping scripts,and it's mounted by default.

About

SRS Media Server on docker.For version 3.0 .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages