afunworm
Custom Domain for Dokploy Control Panel
Definitely! I am destroying my existing services as we talk so I can move to Swarm. My homelab has about 20 services. This should be a fun experience!!
Do you know if Dokploy will manage the volume backup in the Worker Nodes too, or do I have to back them up separately?
39 replies
Custom Domain for Dokploy Control Panel
Yeah. I think we are going off track but I learned so much and thank you for that! I really enjoy the conversation. I wish Dokploy docs are a little more thorough.
So for the original question, I already found a solution. In order to do Reverse Proxy on any of the servers, we can just:
1. Create an empty Application, Provider Docker, pull the image alpine:latest (smallest).
2. Go to Domains, get a generated Traefik Domain (this is required so the Treafik config file is generated in the Advanced tab).
3. Edit the Traefik file to do the reverse proxy for you (Advanced > Traefik). Something like:
4. Deploy the app.
Now traffic from
app.example.com
should be routed to 192.168.0.11:8080
.39 replies
Custom Domain for Dokploy Control Panel
I understand now. Thank you so much for the very throrough explanation.
My last question: So if I get rid of remote servers and use Swarm only, all I need to do is to deploy the apps to the current server (Manager), right? And I can't force where the containers will be running from (either on the Manager or one of the Workers), because that will be taken care of by Dokploy. Everything else will work the same. The additional Worker Nodes are just scaling factors for when the main server isn't running well for some reason?
39 replies
Custom Domain for Dokploy Control Panel
OMG thank you for this. So correct me if I'm wrong:
Remote Servers means Dokploy runs everything through SSH on the remote server.
Cluster/Swarm means each server has their own Dokploy, and just become nodes of the same swarm.
Am I right?
What would be the advantage of swarm over remote servers?
39 replies
Custom Domain for Dokploy Control Panel
Dokploy is install on one server S. Then from that one server, you know how you can add more remote server R and manage them from S? That's what I did. On S, I added a few servers. Now my question is how do I even reverse proxy on those remote servers.
What Dokploy does is that it SSH into the remotes server to set up the server to be manageable by the original S server. It also deploys Traefik to the remote servers, that takes over port 80 and 443, hence, the need to do reverse proxy on the remote server.
39 replies
Custom Domain for Dokploy Control Panel
Ok. I appreciate any help you can find on this. My use case is extremely niche, so I any info can help tremendously. If I can figure this out, then I will be able to do the reverse proxy on both the Dokploy server and the servers that server manages.
Let's say I have Server (S) that has Dokploy. S also has a Remote Server (R). Now, since Dokploy is already using 80 & 443 to route traffics on both S & R, how do I even implement a reverse proxy on server R, from server S?
What I have attempted so far is this (everything is done on S):
- I created an Application on R, literally just pull an image of Alpine, nothing else.
- In the Advanced tab, I modified the Traefik config to do the reverse proxy, for example:
I build the empty container, and just hope that Traefik would work. Well, it does, but unreliably. I don't know how to debug it because sometimes it just says "404 page not found" even though other domains in the same rule works. Imagine app.example.com works but anotherapp.example.com doesn't. And I already made sure that the domains actually resolve to the app on http://192.168.8.8:8080.
Another approach I've tried is to create a Docker app. Then pull... Alpine. Then add
- labels
to add more rules, but this just doesn't work at all.
I'm looking forward to hearing anything you might have for this.39 replies
Custom Domain for Dokploy Control Panel
Out of curiosity, do you know how to use the built-in traefik to set up reverse proxy for already existed applications on the server? (that wasn't spinned through Dokploy). Do I have to go to Traefik File System and make files?
39 replies
How to use Dokploy's Traefik for Reverse Proxy Only?
Hi. So is there any way I can use the built-in Traefik for reverse proxying for some of the services that's already running on the server? The reason is that I used to have Nginx Proxy Manager, but Dokploy took over port 80 & 443, so now I have to find a way to do the reverse proxy from Dokploy.
10 replies