Giter Site home page Giter Site logo

multi-container's Introduction

Welcome to Team Octa

This repo containers standalone dokcerfile to create 3 images to deploy glue app

How to use

##First You need to build a image from dockerfile by following commands

First goto the directory where containes dockefiles the enter the command as below

docker build -t "image_tag_name" -f "dockerfilename" .

after the succesfull build you have to create container from the image. please pass the appropiat values such as Database Host, username and password, webaddress. Please follow the bollow format to pass environment variables.

docker run -itd -p "desired Port to publish" --name "container name " -e "variablename"="value" "imagestagname"

e.g : building image with nginx webserver ip

docker run -itd -p 80:80 --name glue-frontend -e SERVER_NAME=glue.cloudboost.ml teamcloudboost/glue-independent:frontend

Availble environments variables are given below

For DATABASE Container ( Database server will configured as per variable values) :

MYSQL_ROOT_PASSWORD [DATABASE ROOT PASSWORD]
APP_DB [DB NAME FOR GLUE APP]
APP_DB_USER [DB_USERNAME]
APP_DB_PASS [DB_PASSWORD]

docker run -itd -p 3306:3306 --name glue-database teamcloudboost/glue-independent:database

========================================================================

For Frontend Container :

SERVER_NAME [NGINX SERVER NAME]
APP_DB [DATABASE HOST FOR GLUE APP]
APP_DB_USER [DATABASE USERNAME]
APP_DB_PASS [DATABASE PASSWORD]
DB_HOST [DATABASE SERVER IP]
BACK_HOST [BACKEND SERVER IP]

docker run -itd -p 80:80 --name glue-frontend -e APP_DB=laravel -e APP_DB_USER=laravel -e APP_DB_PASS=laravel -e DB_HOST=192.168.0.5 -e SERVER_NAME=192.168.0.5 -e BACK_HOST=192.168.0.5 teamcloudboost/glue-independent:frontend

==========================================================================

For Backend Container :

DB_HOST [DATABASE HOST/SERVER IP]
APP_DB [DATABASE NAME FOR GLUE APP]
APP_DB_USER [DATABASE USERNAME]
APP_DB_PASS [DATABASE PASSWORD]

docker run -itd -p 9000:9000 --name glue-backend -e APP_DB=laravel -e APP_DB_USER=laravel -e APP_DB_PASS=laravel -e DB_HOST=192.168.0.5 teamcloudboost/glue-independent:backend

==========================================================================

Images are available at Dockerhub

Frontend : teamcloudboost/glue-independent:frontend
Backend : teamcloudboost/glue-independent:Backend
Database : teamcloudboost/glue-independent:Database

multi-container's People

Contributors

team-cloudboost avatar bjnandi avatar

Watchers

Md Ashraful Islam 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.