https://github.com/dockerbound-immortal/mern
Docker MERN stack React, MongoDB, Mongo-Express, & Node.
https://github.com/dockerbound-immortal/mern
docker-containers mongo-express mongodb nginx nodejs reactjs
Last synced: 14 days ago
JSON representation
Docker MERN stack React, MongoDB, Mongo-Express, & Node.
- Host: GitHub
- URL: https://github.com/dockerbound-immortal/mern
- Owner: Dockerbound-Immortal
- Created: 2021-03-27T16:19:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T16:24:23.000Z (almost 5 years ago)
- Last Synced: 2025-01-29T04:45:35.534Z (12 months ago)
- Topics: docker-containers, mongo-express, mongodb, nginx, nodejs, reactjs
- Language: JavaScript
- Homepage:
- Size: 232 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MERN Stack
A basic MERN stack, there is another version of this in which Nginx is used a as a gateway to the application allowing for faster static file transfers, and more secure communication between the client and API.
This can be restructured into microservices.
## Usage
To get started, make sure you have [Docker installed](https://docs.docker.com/docker-for-mac/install/) on your system, and then clone this repository.
Next, navigate in your terminal to the directory you cloned this, and spin up the containers for the web server by running `docker-compose up -d --build`.
- **react** - `:3000`
- **mongodb** - `:27017`
- **mongo-express** - `:8081`
- **node** - `:3000`
## Persistent Mongo Storage
Persistent storage is handled by a docker volume, this ensures that when you take down and spin up containers your data is not lost.