baozdemir / docker-prop-nrn

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 42.5%Language:Shell 37.7%Language:HTML 9.4%Language:Dockerfile 5.3%Language:CSS 5.1%