https://github.com/voltan/nginx-vod-module-docker
Local dockerfile for run nginx vod module by kaltura
https://github.com/voltan/nginx-vod-module-docker
docker dockerfile hls kaltura m3u8 nginx nginx-vod stream
Last synced: 5 months ago
JSON representation
Local dockerfile for run nginx vod module by kaltura
- Host: GitHub
- URL: https://github.com/voltan/nginx-vod-module-docker
- Owner: voltan
- Created: 2019-10-22T06:30:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T18:55:58.000Z (about 6 years ago)
- Last Synced: 2025-07-28T23:45:52.898Z (5 months ago)
- Topics: docker, dockerfile, hls, kaltura, m3u8, nginx, nginx-vod, stream
- Language: Dockerfile
- Size: 4.89 MB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nginx-vod-module-docker
Local dockerfile for run nginx vod module by kaltura
## Building locally
This repository uses Docker's multi-stage builds, therefore building this image
requires Docker 17.05 or higher. Given that you have all the required
dependencies, building the image is as simple as running a docker build:
```
docker build -t nginxvod -f Dockerfile .
```
here `nginxvod` is your local image name, and you can change this name if you like
## Running this example locally
You can run this example locally with Docker
```
docker run -p 3030:80 -v $PWD/videos:/opt/static/videos -v $PWD/nginx.conf:/usr/local/nginx/conf/nginx.conf nginxvod
```
* docker run on port `3030`, you can change this port if you want
* open port on server firewall
* `/videos` its local directory for video sources
* `nginx.conf` its nginx config file.
* you can change video path by change `$PWD/videos` to new path
* Add `-d` after `run`, if you want run it background
## Example
* HLS: `http://localhost:3030/hls/demo.mp4/master.m3u8`
* Dash: `http://localhost:3030/dash/demo.mp4/manifest.mpd`
* Thumbnail: `http://localhost:3030/thumb/demo.mp4/thumb-1000.jpg`
## Run examples
* Run in background :
```
docker run -d -p 3030:80 -v $PWD/videos:/opt/static/videos -v $PWD/nginx.conf:/usr/local/nginx/conf/nginx.conf nginxvod
```
## Source
* [dojocasts/nginx-vod-module-docker](https://gitlab.com/dojocasts/nginx-vod-module-docker)
* [nytimes/nginx-vod-module-docker](https://github.com/nytimes/nginx-vod-module-docker)