➜ ~ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d3f626718969 efs/node_live_app "docker-entrypoint.s…" 15 hours ago Up 39 seconds 3000/tcp, 0.0.0.0:3333->3333/tcp node_app
3c423213aeff postgres:12 "docker-entrypoint.s…" 15 hours ago Up 15 hours 0.0.0.0:5432->5432/tcp node_db
Thanks for this tutorial @francescoxx
When I run this on my machine, although the server is started, it is stuck when calling the endpoint. It does not returning the response.
Im currently using mac with m1 chip. Any pointers about this?
try docker ps -a. can you see the containers up and running?
It is actually running
in the index.js, i tried to commented out these lines and it is working now:
I still don't understand what happened. Any pointers / explanation would be appreciated much.
Oh, this is because i missed the
next()function call.oh I see! glad you fixed it