docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # docker-compose.yml/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
  2. # This copyright was auto-generated on Tue Feb 18 18:41:31 UTC 2025
  3. services:
  4. mediamtx:
  5. image: bluenviron/mediamtx:1.9.3
  6. ports:
  7. - '1935:1935'
  8. - '8554:8554'
  9. - '8000:8000'
  10. - '8001:8001'
  11. - '8888:8888'
  12. - '8889:8889'
  13. - '9997:9997'
  14. - '8890:8890'
  15. volumes:
  16. - ./config.yml:/mediamtx.yml
  17. publish-rtsp:
  18. image: linuxserver/ffmpeg:version-7.1-cli
  19. links:
  20. - 'mediamtx:mediamtx'
  21. depends_on:
  22. - mediamtx
  23. volumes:
  24. - ./samples/:/tmp/
  25. # command: '-re -stream_loop -1 -i /tmp/test1.mpg -c copy -f rtsp rtsp://mediamtx:8554/test' # This isn't working for HLS
  26. command: '-f lavfi -i testsrc=size=640x480:rate=10 -vcodec libx264 -pix_fmt yuv420p -r 30 -b:v 300k -f rtsp rtsp://mediamtx:8554/test'
  27. publish-rtmp:
  28. image: linuxserver/ffmpeg:version-7.1-cli
  29. links:
  30. - 'mediamtx:mediamtx'
  31. depends_on:
  32. - mediamtx
  33. volumes:
  34. - ./samples/:/tmp/
  35. command: '-f lavfi -i testsrc=size=640x480:rate=10 -vcodec libx264 -pix_fmt yuv420p -r 30 -b:v 300k -f flv rtmp://mediamtx/test2'