{"id":21730682,"url":"https://github.com/codions/docker-stream-server","last_synced_at":"2025-07-30T02:11:02.075Z","repository":{"id":45673327,"uuid":"410699246","full_name":"codions/docker-stream-server","owner":"codions","description":"Docker image for video streaming server that supports RTMP, HLS, and DASH streams.","archived":false,"fork":false,"pushed_at":"2023-01-19T16:25:08.000Z","size":50,"stargazers_count":29,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T00:15:01.989Z","etag":null,"topics":["docker","nginx","nginx-rtmp","rtmp","s3fs-fuse","streaming"],"latest_commit_sha":null,"homepage":"","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-27T00:54:55.000Z","updated_at":"2025-04-12T06:58:29.000Z","dependencies_parsed_at":"2023-02-11T09:30:34.272Z","dependency_job_id":null,"html_url":"https://github.com/codions/docker-stream-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/codions/docker-stream-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codions%2Fdocker-stream-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codions%2Fdocker-stream-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codions%2Fdocker-stream-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codions%2Fdocker-stream-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codions","download_url":"https://codeload.github.com/codions/docker-stream-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codions%2Fdocker-stream-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267797649,"owners_count":24145709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","nginx","nginx-rtmp","rtmp","s3fs-fuse","streaming"],"created_at":"2024-11-26T04:16:34.069Z","updated_at":"2025-07-30T02:11:02.041Z","avatar_url":"https://github.com/codions.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker + Nginx + RTMP + S3FS\nA Dockerfile installing NGINX, nginx-rtmp-module and FFmpeg from source with default settings for HLS live streaming. Built on Alpine Linux.\n\n* Nginx 1.21.0 (Stable version compiled from source)\n* nginx-rtmp-module 1.2.2 (compiled from source)\n* ffmpeg 4.4 (compiled from source)\n* Default HLS settings (See: [nginx.conf](nginx.conf))\n* S3FS Fuse (S3-Compatible Object Storage)\n\n## Usage\n\nRun container with local storage:\n```\ndocker run --rm -it \\\n-p 1935:1935 \\\n-p 8080:80 \\\nghcr.io/codions/docker-stream-server/docker-stream-server:latest\n```\n\nRun container with S3 storage:\n```\ndocker run --rm --privileged -it \\\n-e FILESYSTEM=s3\n-e AWS_S3_URL=${AWS_S3_URL} \\\n-e AWS_S3_REGION=${AWS_S3_REGION} \\\n-e AWS_S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME} \\\n-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \\\n-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \\\n-p 1935:1935 \\\n-p 8080:80 \\\nghcr.io/codions/docker-stream-server/docker-stream-server:latest\n```\n\nStream live content to:\n```\nrtmp://\u003cserver ip\u003e:1935/stream/$STREAM_NAME\n```\n\n### OBS Configuration\n* Stream Type: `Custom Streaming Server`\n* URL: `rtmp://localhost:1935/stream`\n* Example Stream Key: `hello`\n\n### Watch Stream using AWS and CloudFront\n\nAccess by using your S3 public URL.\n\nFor example `https://your-s3-bucket.s3.us-east-2.amazonaws.com/hls/hello.m3u8`\n\nor you can set your cloudfront (cache disabled) distribution then based on your S3\n\n\u003e  Don't forget to set public access and enable CORS in your s3 bucket\n\n### Watch Stream using Local Storage\n* Load up the example hls.js player in your browser:\n```\nhttp://localhost:8080/player.html?url=http://localhost:8080/live/hello.m3u8\n```\n\n* Or in Safari, VLC or any HLS player, open:\n```\nhttp://localhost:8080/live/$STREAM_NAME.m3u8\n```\n* Example Playlist: `http://localhost:8080/live/hello.m3u8`\n* [HLS.js Player](https://hls-js.netlify.app/demo/?src=http%3A%2F%2Flocalhost%3A8080%2Flive%2Fhello.m3u8)\n* FFplay: `ffplay -fflags nobuffer rtmp://localhost:1935/stream/hello`\n\n\n### SSL \nTo enable SSL, see [nginx.conf](nginx.conf) and uncomment the lines:\n```\nlisten 443 ssl;\nssl_certificate     /opt/certs/example.com.crt;\nssl_certificate_key /opt/certs/example.com.key;\n```\n\n\u003e This will enable HTTPS using a self-signed certificate supplied in [/certs](/certs). If you wish to use HTTPS, it is highly recommended to obtain your own certificates and update the `ssl_certificate` and `ssl_certificate_key` paths.\n\n## Credits\n* https://github.com/alfg/docker-nginx-rtmp\n* https://github.com/TareqAlqutami/rtmp-hls-server\n* https://github.com/efriandika/streaming-server\n\n## Resources\n* https://alpinelinux.org/\n* http://nginx.org\n* https://github.com/arut/nginx-rtmp-module\n* https://www.ffmpeg.org\n* https://obsproject.com\n* https://github.com/s3fs-fuse/s3fs-fuse\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodions%2Fdocker-stream-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodions%2Fdocker-stream-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodions%2Fdocker-stream-server/lists"}