Add configuration files for SRS SIP and update README with Docker commands

This commit is contained in:
2026-01-13 11:45:32 +08:00
parent 42d018b854
commit 6fbbfb698a
3 changed files with 14 additions and 1 deletions

3
.gitignore vendored
View File

@ -23,4 +23,5 @@
hs_err_pid* hs_err_pid*
objs objs
.idea .idea
./run
run

View File

@ -1,4 +1,13 @@
# note to me
```bash ```bash
docker compose build --network host docker compose build --network host
``` ```
```
docker compose up -d --force-recreate
```
# TODO
- [ ] let user choose whether use mirror (use which mirror) when building Dockerfile

View File

@ -14,7 +14,10 @@ services:
- ./run/conf/config.yaml:/usr/local/srs-sip/config.yaml:ro - ./run/conf/config.yaml:/usr/local/srs-sip/config.yaml:ro
- ./run/logs:/usr/local/srs-sip/logs - ./run/logs:/usr/local/srs-sip/logs
- ./run/srs/conf/srs.conf:/usr/local/srs/conf/srs.conf:ro - ./run/srs/conf/srs.conf:/usr/local/srs/conf/srs.conf:ro
# use docker logs
- ./run/srs/logs:/var/log/srs/ - ./run/srs/logs:/var/log/srs/
# for recording
- ./run/data:/data
ports: ports:
# SRS RTMP # SRS RTMP
- "1985:1985" - "1985:1985"