crycopy / docker-mern-nginx

MERN stack application with Docker and Nginx: Docker Compose for React Nodejs Express and MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Compose MERN Stack with Nginx example

Dockerize fullstack: React, Nodejs Express and MongoDB (MERN stack application) example using Docker Compose with Nginx.

Run the System

We can easily run the whole with only a single command:

docker-compose up

Docker will pull the MongoDB and Node.js images (if our machine does not have it before).

The services can be run on the background with command:

docker-compose up -d

Stop the System

Stopping all the running containers is also simple with a single command:

docker-compose down

If you need to stop and remove all containers, networks, and all images used by any service in docker-compose.yml file, use the command:

docker-compose down --rmi all

For more detail, please visit:

Docker Compose MERN Stack with Nginx example

Related Posts:

React + Node.js + Express + MongoDB example

React + Node.js Express + MongoDB: User Authentication with JWT example

Integration (run back-end & front-end on same server/port)

Integrate React with Node.js Restful Services

About

MERN stack application with Docker and Nginx: Docker Compose for React Nodejs Express and MongoDB


Languages

Language:JavaScript 90.9%Language:HTML 5.9%Language:Dockerfile 1.6%Language:Shell 1.0%Language:CSS 0.6%