How to use Dokploy's Traefik for Reverse Proxy Only?

I have an app that is already running at 127.0.0.1:8888. How do I deploy an application that does nothing except forwarding all requests from example.com to 127.0.0.1:8888? What I did so far: 1. Create an application. 2. Create a domain for that application. 3. Go inside Traefik File System > Dynamic > example-e4e1ia.yml and make the following changes:
services:
example-e4e1ia-service-17:
loadBalancer:
servers:
- url: http://127.0.0.1:3000
passHostHeader: true
services:
example-e4e1ia-service-17:
loadBalancer:
servers:
- url: http://127.0.0.1:3000
passHostHeader: true
4. I go inside the Application again and click "Deploy". This is what is shown in the deployment tab:
Initializing deployment
Initializing deployment
And this is what is shown in the log tab:
Error response from daemon: No such container: select-a-container
Error response from daemon: No such container: select-a-container
7 Replies
Henrik
Henrik3mo ago
127.0.0.1 is a loopback IP adress. Every container got its own loopback. It will not be routed out from Traefik
afunworm
afunwormOP3mo ago
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.
virtualenv
virtualenv2w ago
This is my question also.
Henrik
Henrik2w ago
Yes. Point it to the docker0 IP
virtualenv
virtualenv2w ago
Is it possible explain more? Thank you. I had a Gitea on my server that was up with a docker-compose file. I up it with nginx. Now I am looking a way to set a domain on Dokploy to reverse requests from gitea.example.com to my Gitea container.
Henrik
Henrik2w ago
Remove nginx? Let traefik route to Gitea But if you need to reach something running on localhost:8080, create a file in traefik's dynamic files and set the url to <docker0 ip:8080>
virtualenv
virtualenv2w ago
I was looking for a way to do this in Dokploy UI. I gave my Gitea docker-compose file content to Dokplay service and mount /data directory as volume. Then I add dokploy docker network to the compose config. Build and add a domain. This worked for me.

Did you find this page helpful?