coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
31.88k stars 1.64k forks source link

[Bug]: Cannot define domain for service when deploying with docker-compose #3466

Open oussamadouhou opened 6 days ago

oussamadouhou commented 6 days ago

Error Message and Logs

When deploying an app from a public repository with a docker-compose in the root directory all configurations are loaded but the option for the domain is missing and not available. image

Steps to Reproduce

  1. Go to projects
  2. Choose desired project
  3. Click on new resource
  4. Choose Git based -> Public Repository
  5. Select desire server (mine is V4.0.0-beta.338
  6. Add desired repository (mine https://github.com/hashicorp-forge/hermes.git)
  7. Click check repository
  8. Change Build Pack to docker-compose
  9. Set base directory to /
  10. change Docker compose location to /docker-compose.yml and click Continue
  11. In the General tab Domains option is empty

image

Example Repository URL

https://github.com/hashicorp-forge/hermes

Coolify Version

V4.0.0-beta.338

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04

Additional Information

No response

djsisson commented 6 days ago

@oussamadouhou its missing due to this service not having any accessible https endpoint.

its postgres you cant directly assign it a domain

eduhdev12 commented 6 days ago

@oussamadouhou its missing due to this service not having any accessible https endpoint.

its postgres you cant directly assign it a domain

No, he is right. Something happened try this from official docs https://raw.githubusercontent.com/coollabsio/coolify/main/templates/compose/plausible.yaml to see the issue

djsisson commented 6 days ago

@eduhdev12

this is a multi service compose, you enter the domain from settings or yellow icon for each service that needs one

see image ( the compose is missing one line so there is no domain auto generated) this line is missing at top of environment

- SERVICE_FQDN_PLAUSIBLE

image

stevenhuyn commented 5 days ago

tyty, docs should be updated for this