Projets
Voir sur GitHub
iam-veeramalla/MERN-docker-compose
À propos
This repo helps you understand how to containerize a mern stack app and deploy using docker-compose
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalA simple MERN stack application
Create a network for the docker containers
docker network create demo
Build the client
cd mern/frontend
docker build -t mern-frontend .
Run the client
docker run --name=frontend --network=demo -d -p 5173:5173 mern-frontend
Verify the client is running
Open your browser and type http://localhost:5173
Run the mongodb container
docker run --network=demo --name mongodb -d -p 27017:27017 -v ~/opt/data:/data/db mongo:latest
Build the server
cd mern/backend
docker build -t mern-backend .
Run the server
docker run --name=backend --network=demo -d -p 5050:5050 mern-backend
Using Docker Compose
docker compose up -d
Explorer des projets similaires
Chargement…