version: "3.8" services: srs: #image: ossrs/srs:v4.0.136 #image: 76527413/srs:amd64 #image: 76527413/srs:arm64 #image: 76527413/srs:gb28181 image: 76527413/srs:h265 environment: - CANDIDATE=192.168.100.144 ports: - 1935:1935 - 1985:1985 #- 1990:1990 - 8080:8080 #- 8088:8088 - 8000:8000/udp - 1980:1980/udp - 8935:8935/udp - 554:554 - 8936:8936 - 5060:5060/udp - 9000:9000/udp - 58200-58300/udp - 10080:10080/udp volumes: - /etc/localtime:/etc/localtime:ro - ./conf/example:/usr/local/srs/conf #- ./conf/gb28181:/usr/local/srs/conf - ./tmp/srs:/usr/local/srs/objs/nginx/html/live ffmpeg-h264: image: 76527413/ffmpeg:amd64 volumes: - ./h264.mp4:/test.mp4 command: ffmpeg -y -re -stream_loop -1 -i test.mp4 -c:a copy -c:v copy -f flv rtmp://srs/live/h264 depends_on: - srs ffmpeg-265: image: 76527413/ffmpeg:amd64 volumes: - ./h265.mp4:/test.mp4 command: ffmpeg -y -re -stream_loop -1 -i test.mp4 -c:a copy -c:v copy -f flv rtmp://srs/live/h265 depends_on: - srs nginx: image: nginx:1.21.0 ports: - 80:80 volumes: - ./html:/usr/share/nginx/html depends_on: - ffmpeg