coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Portainer Service Template Custom URL Not Working

Open 0-BSCode opened this issue 6 months ago • 2 comments

Error Message and Logs

When using the default Portainer service template, accessing it via a configured domain results in a Not found error

Image

Steps to Reproduce

  1. Create new resource
  2. Select Portainer service
  3. Set "Domains" to a custom domain (here, I set it to the subdomain of the domain that maps to my VPS. For example, my VPS IP is mapped to https://hello.com, so I set the custom domain of the Portainer service to https://portainer.hello.com)
  4. Run the service
  5. Visit the custom domain specified (if we're following along with the example in item 3, visit https://portainer.hello.com)

Example Repository URL

No response

Coolify Version

v4.0.0-beta.418

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04.2 LTS

Additional Information

The service itself appears to be running, as when I checked the status of the docker container (via docker ps -a), it reports a status of healthy. Furthermore, using the default domain that was generated also errors out, but results in a different error this time, saying that the site took too long to respond (screenshot below)

Image

0-BSCode avatar Jun 15 '25 14:06 0-BSCode

@0-BSCode can you add :9000 https://portainer.example.com:9000 to the end of the domain you have given in coolify project page and restart, i think this container exposes multiple ports, so you need to say which you want to route to.

djsisson avatar Jun 15 '25 17:06 djsisson

@0-BSCode can you add :9000 https://portainer.example.com:9000 to the end of the domain you have given in coolify project page and restart, i think this container exposes multiple ports, so you need to say which you want to route to.

~The default domain includes the port number, but I get the error shown above when trying to access~

Was able to get it to work. Thank you! What reference did you use to identify this as the fix?

0-BSCode avatar Jun 16 '25 07:06 0-BSCode

I have tried this and it still did not work on my end. I even added the :9000 port to my url.

Coolify Version v4.0.0-beta.418

Are you using Coolify Cloud? No (self-hosted)

Operating System and Version (self-hosted) Ubuntu 24.04.2 LTS

Below is my coolify configuration

Image

these are my logs:

Image

this is what I get on my browser when I open it:

Image

comgenius avatar Jun 16 '25 18:06 comgenius

you need to restart your portainer service

also for things that can access your server directly, do not post the urls unless they are behind some form of auth

its working fine

Image

djsisson avatar Jun 16 '25 18:06 djsisson

you need to restart your portainer service

also for things that can access your server directly, do not post the urls unless they are behind some form of auth

its working fine

Image

Thank you so much. saw it fixed

comgenius avatar Jun 16 '25 21:06 comgenius