start.sh 356 B

12345678910111213141516171819
  1. #!/bin/bash
  2. if [ ! -d $HOME/rec ]; then
  3. mkdir $HOME/rec
  4. fi
  5. if [ ! -d /tmp/hls/ispooge.com ]; then
  6. mkdir -p /tmp/hls/ispooge.com
  7. fi
  8. docker run \
  9. --name rtmp-proxy \
  10. -d --restart always \
  11. -p 1935:1935 \
  12. --mount type=bind,source=/tmp/hls/ispooge.com,target=/tmp/hls/ispooge.com \
  13. --mount type=bind,source=$HOME/rec,target=/tmp/rec \
  14. nginx-rtmp