Help stuck, new to docker and everything with VPS
Shouldn't my docker image have a port assigned to it?

30 Replies
I'm trying to upload a Node App, I created the project and the service, the deploy looks good along with the longs everything seems to be connecting just fine. In my environment variables I have the PORT variable set to 3000 but Dokploy is also running on port 3000 on my VPS is that why this is possibly not working. I'm new to all of this I simply want to host my backend on a VPS.
When I go to that URL I get a Bad Gateway error message

I was able to add a server to my dokploy through cloudfare and stuff like that

but im not able to get to my app
@Siumauricio if you have some time i would appreciate the help thanks
don't select https on traefik.me domains....
we have basic examples that can give a clue what are you doing different https://docs.dokploy.com/docs/core/nextjs
Next.js | Dokploy
Deploy a simple Next.js application.
I had my own domain initially, but I will change that
Also any answers to the docker port question?
It has nothing to do with it, the port 3000 of your application is running internally in the container
You can have X amount of applications running on port 3000, as long as you don't expose the port
When you specify the port in the domain, traefik will automatically go to that container and look for the internal port
removed the https
im getting 404 now.
check in which port is running your application

check the logs of your application
looks good

this is how it looks when everything is sucessful
and what port is running your application?
3000
is what is set on my env variable
how do you know
if you get bad gateway probably you are setting a incorrect port in the domain
this is a example of nestjs running on port 3000 https://docs.dokploy.com/docs/core/nestjs
Nest.js | Dokploy
Deploy a simple Nest.js application.
i had my env variable in lower case its supposed to be uppercase...
lets see if that fixes it
the only difference that i see is the build path
i have it set to /
if i do /nestjs it fails to deploy
(making the env variable uppercase didn't fix the issue still getting 404)
can i screen share in the voice chat or something? maybe it would be easier?


the example working
I suggest to read or compare your application with the example we have
i see what's going on
when i go to this url it automatically puts the https in the url bar

thats the cache
but the https page doesn't exist
im actually mad at myself now, thank you for the attention
cool stuff you got going on here!
yeah that's why I said you don't need to assign https to traefik.me domains hahaha
nice you get it working!
first time ever using a vps, ssh into a vps or anything to do with that so sorry for all of this
so i could go to cloudfare and like my server I can add a dns rercord right?
no worries
yeah