Skip to content

Commit

Permalink
Refine the README for ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 19, 2023
1 parent 736f011 commit 3bbbbc0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ events, automatic HTTPS, and an easy-to-use HTTP Open API.
Run srs-stack in one docker:

```bash
docker run --rm -it -p 2022:2022 -p 2443:2443 -p 1935:1935 \
-p 8080:8080 -p 8000:8000/udp -p 10080:10080/udp --name srs-stack \
-v $HOME/data:/data ossrs/srs-stack:5
docker run --rm -it --name srs-stack -v $HOME/data:/data \
-p 2022:2022 -p 2443:2443 -p 1935:1935 -p 8000:8000/udp -p 10080:10080/udp \
ossrs/srs-stack:5
```

> Note: Please use `-e REACT_APP_LOCALE=zh` and `registry.cn-hangzhou.aliyuncs.com/ossrs/srs-stack:5` in China.
Expand All @@ -32,6 +32,14 @@ docker run --rm -it -p 2022:2022 -p 2443:2443 -p 1935:1935 \
Then open http://localhost:2022 in browser.

The ports used for SRS Stack:

* `2022/tcp`: The HTTP port, you can also use `80` instead.
* `2443/tcp`: The HTTPS port, you can also use `443` instead.
* `1935/tcp`: The RTMP port, to support publish stream by RTMP to SRS Stack.
* `8000/udp`: The WebRTC UDP port, to transport WebRTC media data like RTP packets.
* `10080/udp`: The SRT UDP port, to support publish stream via SRT protocol.

You have the option to modify the volumes for srs-stack and direct them to different directories.

* `/data` The global data directory.
Expand Down

0 comments on commit 3bbbbc0

Please sign in to comment.