Git Product home page Git Product logo

deploy's Introduction

Deployment tools

Please find the Dockerfile and docker-compose files to help you deploy sample applications. It can be a good example upstart to understand and build your own application based on the Cortex Video Services.

Get started

Clone this repo:

git clone https://github.com/CortexVideoServices/Deploy.git ./cvs
cd ./cvs
git submodule init

It contains repositories of other platform elements as git submodules that are used to build the Docker images needed to deploy the application stack. Therefore, every time before building images, you need to update the submodules:

git submodule update --remote

In order for the build images to run on a real server, you need: the associated hostname, the associated SSL certificate and its private key, stored in the PEM file. The certificate file must contain the complete certificate trust chain. Create a docker-compose override file with this information (fill sections: SERVERNAME, FULLCHAIN_PEM, PRIVKEY_PEM), for example you can see base.sample-prod.yaml.

You also need to create the files server.prod.yaml and videoroom.prod.yaml with your own parameters for connecting to the database POSTGRES_PASSWORD and POSTGRES_DSN, parameters for connecting to the mailer MAILER and JWT key JWT_SECRET, public IP address of server where running janus-gateway PUBLIC_IP. An example of the contents of the files can be found in server.sample-prod.yaml, videoroom.sample-prod.yaml.

The next step is to build images and create network:

docker-compose -f base/docker-compose.yaml -f base.prod.yaml build
docker-compose -f others/Server/docker-compose.yaml -f server.prod.yaml build
docker-compose -f others/VideoRoom/docker-compose.yaml -f videoroom.prod.yaml build
docker network create cvs

Then just run the following command to launch the docker containers.

docker-compose -f others/Server/docker-compose.yaml up -d
docker-compose -f others/VideoRoom/docker-compose.yaml up -d

deploy's People

Contributors

alesh avatar ukjain avatar

Watchers

James Cloos 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.