Dokploy inaccessible using domain after Cloudflare DNS
Guys so here's the sequence of events
1. I deploy dokploy to DigitalOcean VPS
2. I deploy backend to api.DOMAIN.com
3. I deploy frontend to DOMAIN.con
4. Dokploy accessible on VPSIP:3000 and HTTP-DOMAIN:3000 both
5. Everything is perfect upto this stage
6. I move away from Porkbun Nameservers to Cloudflare and switch the SSL/TLS to Full(Strict)
7. Dokploy no longer accessible on the domain (As to be expected given cloudflare redirects HTTP to HTTPS, and only accessible using the VPSIP
8. Auto Deployments for both my branches are no longer working and I have to trigger manual deployments only after pushing code to the main branch. This is the most troubling issue
Any help is greatly appreciated
12 Replies
I am also using cloudflare. On the dokploy dashboard where you set its domain, did you enable HTTPS? I have it disabled/off and its able to automatically use cloudflare certificate
@arobius Thank you so much for the reply. Did you mean this setting?

Yes thats the setting. From your description and what you've done it should be working. Have you tried to look at the dokploy logs and restarting the dokploy or traefik container?
recently an update became avaialbe for 0.21.8 and I updated it but i still can't access the dokploy using the domain:3000 path and the auto deployments are still broken. The actual domain (domain and api.domain) are both perfectly accessable though. Should I look at some other settings? I can share any other screenshots that might help you diagnose the problem. Thanks again for your time and reply
what about access it on
domain.com
? For me personally I've set the dokploy UI domain to be deploy.domain.com
and kept the domain.com
to be for my main application.
you shouldn't need to specify the port when accessing your dokploy UI. When I try deploy.domain.com:3000
it doesn't load for me but if I remove the port it works
Also what port is your application running on domain.com
? It could be conflicting with dokploy that also runs on 3000. For now try to change the dokploy UI domain to be something else other than your application like dokploy.domain.com
. Don't forget to add the DNS recordso I changed the server domain to dokploy.domain.com and now when I visit the page it gives an SSL error (at elast something different is happening). YOu might be right about the missing dokploy dns record. Could you please guide me what type of record it is and what values it uses?
I can add it to cloudflare dns and hopefully it works
Mine is an A record:

thank you so much, let me try this
i added the record and updated the domain in dokploy to deploy.domain.com now I get this. Got any ideas regarding this?

Try to restart traefik and if that doesn't work then try to enable/disable HTTPS from the dokploy.
I'm not quite sure at this stage, I would just try a bunch of stuff like that
I enabled HTTPS and now it's working. Thank you so much! I'll test auto deployments in a while
Cool. It could've been just cloudflare taking a few minutes to update records/provision ssl. If you disable again It should still work with http I think