SRS(2.0) installed on centos.
Git pull master branch code at 2017-10-09 and build with --full.
So this image include all features of SRS.
The installed path is /usr/local/srs.
There are 4 folders which are "objs","conf","logs" and "etc" in this path.
You can start srs with follow commands:
docker run -p 1935:1935 -it chenshaoze/srs-docker bash
./objs/srs -c conf/rtmp.conf
You also can use it with docker-compose.
For exsample add following code in your docker-compose.yml.
PS: Don't forget to create folder which named "conf" and add file which named *.conf ( e.g. rtmp.conf ).
- "1935:1935" - "80:80" volumes: - ./conf:/usr/local/srs/conf - ./logs:/usr/local/srs/logs command: bash -c "cd /usr/local/srs && ./objs/srs -c conf/rtmp.conf"