SRS (v2.0.243 release) installed on centos.
The installed path is /usr/local/srs.
There are 3 folders which are "objs","conf" 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-composer.yml.
PS: Don't forget to create folder which named "conf" and add file which named *.conf ( rtmp.conf ).
- "1935:1935" - "80:80" volumes: - ./conf:/usr/local/srs/conf command: bash -c "cd /usr/local/srs && ./objs/srs -c conf/rtmp.conf"