afunworm
afunworm
DDokploy
Created by afunworm on 2/18/2025 in #help
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
DDokploy
Created by afunworm on 2/18/2025 in #help
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:
http:
routers:
random_local_app_router:
rule: Host(`app.example.com`)
service: random_local_app_service
middlewares: []
entryPoints:
- web

services:
random_local_app_service:
loadBalancer:
servers:
- url: http://192.168.0.11:8080
passHostHeader: true
http:
routers:
random_local_app_router:
rule: Host(`app.example.com`)
service: random_local_app_service
middlewares: []
entryPoints:
- web

services:
random_local_app_service:
loadBalancer:
servers:
- url: http://192.168.0.11:8080
passHostHeader: true
4. Deploy the app. Now traffic from app.example.com should be routed to 192.168.0.11:8080.
39 replies
DDokploy
Created by afunworm on 2/18/2025 in #help
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
DDokploy
Created by afunworm on 2/18/2025 in #help
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
DDokploy
Created by afunworm on 2/18/2025 in #help
Custom Domain for Dokploy Control Panel
I somehow I'm under the impression that Dokploy can do this. Will Dokploy be able to operate with Dockerswarm?
39 replies
DDokploy
Created by afunworm on 2/18/2025 in #help
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
DDokploy
Created by afunworm on 2/18/2025 in #help
Custom Domain for Dokploy Control Panel
Imagine you have a main Dokploy server managing a remote server. Now, how do you do reverse proxy on that remote server since Dokploy also uses Traefik on the remote server?
39 replies
DDokploy
Created by afunworm on 2/18/2025 in #help
Custom Domain for Dokploy Control Panel
And can it be extended to the remote server too?
39 replies
DDokploy
Created by afunworm on 2/18/2025 in #help
Custom Domain for Dokploy Control Panel
Ok so that's one thing down. How did you do that?
39 replies
DDokploy
Created by afunworm on 2/18/2025 in #help
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:
http:
routers:
forward-to-local-app:
rule: >
Host(`app.example.com`) ||
Host(`anotherapp.example.com`)
entryPoints:
- websecure
tls:
certResolver: letsencrypt
service: forward-to-local-app-service

forward-to-local-app-service:
loadBalancer:
servers:
- url: "http://192.168.8.8:8080"
passHostHeader: true
http:
routers:
forward-to-local-app:
rule: >
Host(`app.example.com`) ||
Host(`anotherapp.example.com`)
entryPoints:
- websecure
tls:
certResolver: letsencrypt
service: forward-to-local-app-service

forward-to-local-app-service:
loadBalancer:
servers:
- url: "http://192.168.8.8:8080"
passHostHeader: true
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
DDokploy
Created by afunworm on 2/18/2025 in #help
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
DDokploy
Created by afunworm on 2/18/2025 in #help
Custom Domain for Dokploy Control Panel
No description
39 replies
DDokploy
Created by afunworm on 2/18/2025 in #help
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
DDokploy
Created by afunworm on 2/14/2025 in #help
How to stop Dokploy Docker Compose (raw) from adding random string to my volume name?
I'm migrating my docker compose files over. This is not the provided templates.
3 replies