Port 3000 problem #71
-
I can't run WAHA in another port instead port 3000. Can you tell me why? I need to run it in another port because the port 3000 I already use for another. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Try to set environment variable WHATSAPP_API_PORT docker run -it -e "WHATSAPP_API_PORT=3020" devlikeapro/whatsapp-http-api
|
Beta Was this translation helpful? Give feedback.
-
If you just reused the command I gave - yep, it won't work, because you must map ports to localhost as well So the whole command would be: docker run -it -p 3000:3000/tcp -e "WHATSAPP_API_PORT=3020" devlikeapro/whatsapp-http-api
# OR
docker run -it --network host-e "WHATSAPP_API_PORT=3020" devlikeapro/whatsapp-http-api For the future type the commands that you run if you're asking questions, please. |
Beta Was this translation helpful? Give feedback.
-
I found the solution. I trying this code below :
It will run in port 3020 instead of 3000. |
Beta Was this translation helpful? Give feedback.
I found the solution. I trying this code below :
docker run -it --rm -p 127.0.0.1:3020:3000/tcp --name whatsapp-http-api devlikeapro/whatsapp-http-api
It will run in port 3020 instead of 3000.
Thank you for your help @allburov .