Docker images for Wanderlust Frontend only. Where you can see only frontend part only
203
This is a three-tier Wanderlust App built using React, Node, and MongoDB. For this app, I will create two Docker images: the first one is "wanderlust-Frontend," which runs only the frontend part, and the second one is "wanderlust-Backend," which runs the backend part.
Firstly, we will build images for the frontend, backend, and MongoDB database.
docker pull azfaralam440/wanderlust-frontend:latest
docker pull azfaralam440/wanderlust-backend:latest
git clone https://github.com/mdazfar2/three-tier-deploy-wanderlustApp.git
frontend directory
cd three-tier-deploy-wanderlustApp/frontend
.env. sample file
VITE_API_PATH="http://YOURIP:5000"
docker network create threetier
cd three-tier-deploy-wanderlustApp/backend
.env.sample file
MONGODB_URI="mongodb://YOURIP/wanderlust"
docker run -d --name mongo --network=threetier -p 27017:27017 mongo:latest
docker run -d --name backend --network=threetier -p 5000:5000 azfaralam440/wanderlust-backend:latest
docker run -d --name frontend --network=threetier -p 5173:5173 azfaralam440/wanderlust-frontend:latest
.env.sample file of backendMONGODB_URI="mongodb://mongo/wanderlust"
docker exec <containername-id-of-mongo> -it mongoimport --db wanderlust --collection posts --file ./data/sample_posts.json --jsonArray
<ur-ip:5173>
Content type
Image
Digest
sha256:aedc21fc7…
Size
521.9 MB
Last updated
over 2 years ago
docker pull azfaralam440/wanderlust-frontend