GithubHelp home page GithubHelp logo

baozdemir / docker-prop-nrn Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 21 KB

Docker for production on n(nginx), r(react), n(nodejs)

Dockerfile 5.27% HTML 9.38% CSS 5.15% JavaScript 42.55% Shell 37.66%

docker-prop-nrn's Introduction

docker-prod-nrn

This project is just a boilerplate, the purpose of this project is to show the structure of the project, explain the used dockerfiles, to explain the deployment pipeline. A project that runs a Nginx, Node server and a react app(just build) via two separate containers, using Docker Compose and using Bitbucket Deployment Pipeline.

Production

- Under the hood

  • NodeJS

  • ReactJS

  • NGINX

  • Bitbucket Deployment Pipeline

- Prerequisites

  • Docker

- Folder Structure

  • to do ...

- Nginx Image

Nginx and Letsencrypt configuration consists of 3 files. - nginx.conf - nginx_my.conf - nginx.env

...more

  • to do ...

- Node Image

  • to do ...

- React Image

  • to do ...

- Using Deployment Pipeline

  • to do ...

- Using docker compose

Start via:


$ docker-compose up

  

# or detached

$ docker-compose up -d

Run a single container via:


$ docker-compose up server

Check status:


$ docker-compose ps

Stop:


$ docker-compose down

NOTE : if any dependencies change in package.json files, you probably will need to rebuild the container for the changes to appear, e.g.,


$ docker-compose down

$ docker-compose build

$ docker-compose up

docker-prop-nrn's People

Contributors

baozdemir 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.