Coder Social home page Coder Social logo

docker-openresty-gm's Introduction

Description

docker-openresty-gm is a docker image with OpenResty , rtmp module and GraphicsMagick for docker

Features

Prerequisites

  • Git
  • Docker, required for single server deployment only.

Usage

Quickstart with Docker

SSH to your server and run

# Clone this repo
git clone https://github.com/kuwork/docker-openresty-gm.git  
# Run image and mount config files for later editing
docker run -dit --name my_streaming_server \
  -p 80:80 \
  -p 443:443 \
  -p 1935:1935 \
  -v ~/docker-openresty-gm/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf \
  kuwork/docker-openresty-gm:alpine-fat 

Then your browser should display OpenResty welcome home page at http://streaming_server_ip/ . Later on, just edit the mounted nginx.config file at ~/docker-openresty-gm/nginx.conf for your needs and apply changes with command below

sudo docker exec my_streaming_server sh -c "openresty -t && openresty -s reload"
  • nginx rtmp module has default application endpoint my_live_stream. You can push your live stream to the server via url: rtmp://streaming_server_ip_or_domain:1935/my_live_stream/my_stream_name and playback with hls url http://streaming_server_ip_or_domain/hls/my_stream_name

Building from source

git clone https://github.com/kuwork/docker-openresty-gm.git
cd docker-openresty-gm
./build.sh
# Then run the image
docker run -dit --name openresty-gm \
  -p 80:80 \
  -p 443:443 \
  -p 1935:1935 \
  -v ./nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf \
  kuwork/openresty:alpine-fat-gm

docker-openresty-gm's People

Contributors

kuwork avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.