This app shows a simple user profile app set up using
- index.html with pure js and css styles
- nodejs backend with express module
- mongodb for data storage
Untitled.video.-.Made.with.Clipchamp.1.mp4
Step 1: Pull mongodb and mongo-express images on your machine.
docker pull mongo
docker pull mongo-express
Step 2: Build your Web_App using Dockerfile and give it a Tag.
docker build -t my_web_app:1.0 .
Step 3: Push the image to the AWS ECR.
docker push <AWS ECR>
Step 4: Run container images from mongodb, mongo-express and ECR images using docker-compose in detached mode.
docker-compose -f docker-compose.yaml up -d
Step 5: access the mongo-express application from your browser.
http://localhost:8081
Step 6: access the nodejs application from browser
http://localhost:3000