Skip to content

kvsovanreach/react-ts-docker-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Run using docker compose

docker-compose up --build #run in foreground mode
docker-compose up --build -d #run in detach mode

Run using docker multi-stage

docker compose -f docker-compose-MS.yaml up --build #run in foreground mode
docker compose -f docker-compose-MS.yaml up --build -d #run in detach mode

It will build 2 images (frontend, backend), pull 2 images (mongo, mongo-express), and then run 4 containers for each of these images.

  • mongo: actual database container
  • mongo-express: web-based mongo db admin interface
  • frontend: container for hosting frontend (react for normal docker, nginx for multi-stages)
  • backend: container for hosting backend

Access

WebUI

About

A sample of using multi-stages docker containers for production deployment with ReactJS & NodeJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published