Saturday, October 24, 2026

docker

 

Frontend dockerfile:
PS D:\React\NEWUI\proFinal3\proFINAL\fe_token> docker build -t react-client .

run this
first time it failed due to docker deskotp not opened
open desktop application


refer below docker deskotp app





Image created below after execution of command
PS D:\React\NEWUI\proFinal3\proFINAL\fe_token> docker build -t react-client .






PS D:\React\NEWUI\proFinal3\proFINAL\fe_token> docker run -p 5174:3000 react-client

check in browser: 5174 port runs 



NOW BACKED:

PS D:\React\NEWUI\proFinal3\proFINAL\backend> docker build -t express-server .

run this command

go to docker desktop check express server image


run this                                                     2.0s
PS D:\React\NEWUI\proFinal3\proFINAL\backend> docker run -p 9012:9012 express-server

port in network to be 9012 but runs on port 5174 which is frontend port




db, frontend
backeend need to run








No comments:

Post a Comment