support for multiple domains?

Hello, Do you support multiple domains for each project? Like Vercel does. So that I can offer my users to use their own domains for my SaaS? Is there an API?
17 Replies
Siumauricio
Siumauricio13mo ago
Hi, i guess you mean use something like this in each application? app1.client1.com app1.client2.com if so yeah you could do it, just simply point the A record to the ip of vps So you can point as many dns records you want
dkrusenstrahle
dkrusenstrahleOP13mo ago
Great. Is there an API for adding domains?
Siumauricio
Siumauricio13mo ago
Here is the instructions on how to add a new domain https://docs.dokploy.com/domains/application-setup
Dokploy Documentation
Dokploy Documentation
Effortless deployment solution
dkrusenstrahle
dkrusenstrahleOP13mo ago
I am deploying an Angular app via Dockerfile. When I setup the port to 80 (or 3000) I get the error Bad Gateway
Siumauricio
Siumauricio13mo ago
you don't need to explicity export the port, like if your application is running in port 4000 locally, in the domains when you add a domain you set the container port is where your application is running for example 4000
dkrusenstrahle
dkrusenstrahleOP13mo ago
I tried another domain and got "...redirected you too many times"
Siumauricio
Siumauricio13mo ago
You have your domain on cloudflare?
dkrusenstrahle
dkrusenstrahleOP13mo ago
Yes
Siumauricio
Siumauricio13mo ago
GitHub
Exposing Port 3001 in Docker Container for Node.js Application · Is...
Hello, I want to thank you for the excellent work you've done. Currently, I'm running a Node.js application on port 3001, but this port hasn't been exposed by Docker. I'd like to kn...
dkrusenstrahle
dkrusenstrahleOP13mo ago
Will heck it out, thanks! I tried a domain I have on DNSimple.com to "...Check if there is a typo in..." This site can’t be reached
Siumauricio
Siumauricio13mo ago
can you please show the domains that you have linked in the domains tab?
dkrusenstrahle
dkrusenstrahleOP13mo ago
It could be my app that is acting up to, I will investigate this angle to
Siumauricio
Siumauricio13mo ago
Looks like they include automatically SSL certificates so probably that's the reasson
No description
dkrusenstrahle
dkrusenstrahleOP13mo ago
Perhaps! I will make sure my own app is not acting up. Will report back. Thank you for such great support! DokPloy seems awesome
Siumauricio
Siumauricio13mo ago
thank you! no worries
dkrusenstrahle
dkrusenstrahleOP13mo ago
I tried another domain to point to the main control panel but that doesnt work either. Is there anything special I need to do to allow domains? Also, is there a default url for each project like on vercel?
Siumauricio
Siumauricio13mo ago
Mmm can you check the traefik logs?

Did you find this page helpful?