Traefik + Pgadmin, maybe certification issue, causing 404 not found
I am trying to put pgadmin on dokploy and behind traefik. The reason I am doing that is because my db (postgres) is also hosted with dokploy and the port is only accessible inside the container (I am using
expose
instead of ports
), so its not public facing. Thus, I cannot use a local pgadmin from my laptop and connect to the db since the port is not accessible. So, my thought is to deploy a pgadmin container as well (they are all in the same docker-compose with the same network value) so I can see into the db. But it is not working, I have a hunch that it is because traefik cannot generate certs for it, because when I look at acme it doesnt have the key for the domain I set it to (I have also set the DNS in cloudflare). Here is the error
Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [my.domain.com]: error: one or more domains had a problem:\n[my.domain.com] acme: error: 403 :: urn:ietf:params:acme:error:unauthorized :: 2606:4700:20::ac43:49dc: Invalid response from https://perfectdomain.com/domain/alfrd.com: 403\n
When I try to refresh traefik, it also throws an error. Let me know if I can provide anything else to better make this clear. This is my first time messing around with VPS, networking, etc.28 Replies
are you tring to assign a domain to a postgres database?
to pgadmin
did you pointed the IP of the vps to your server?
in cloudflare you mean? yes
I have added the domain for pgadmin I wanted to use and the IP of my vps there
how did you pointed the domain ?
and also how did you created the domain in dokploy
this is how I did it in cloudflare
ok looks good
and in dokploy how did you set the domain?

its the pgadmin one
the url in dokploy is the same as the one in cloudflare
and when I try to access it in my browser, I got 404 not found
and this is my docker-compose.yml. The one in dokploy has been populated automatically, but this is what is in my repo
did you deploy again?
yeah, I have deployed, rebuild, restart the container etc.
still no luck
what mode you have in cloudflare?
flexible or full strict?
full strict
my other container can be accesed from the internet with this whole setup, except for this pgadmin
hmm can I have access to your server if you don't mind?
Something is missing I think
i dont mind, but I think that would be the last resort, i can run any commands you give me
the other applications are working and accessible to a domain?
yes
they are all in the same docker-compose
in the ports settings what did you set for?
pgadmin port was originally set to 80, but that clashes with traefik i believe, so I changed it to something else
just set 80
if we only set the container to be on the internal port 80 it doesnt matter
check this https://docs.dokploy.com/en/docs/core/troubleshooting/overview#docker-compose-domain-not-working
Overview
Solve the most common problems that occur when using Dokploy.
but isnt traefik using 80?
Yes, but as we said in the docs is not necessary to expose the ports
k let me try
solved, but not for the reasons we thought
Server Fault
strict MIME type checking is enabled issue with PGAdmin in Azure ap...
I am trying to install pgAdmin (image: 'dpage/pgadmin4:6.21') in Azure AKS. I am able to access the application when I use a Kubernetes LoadBalancer service, but when I use an Azure Application Gat...
Added this to pgadmin docker-compose
at one point I was able to access the service, but it still threw an error
Nice