coolify icon indicating copy to clipboard operation
coolify copied to clipboard

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

Open oussamadouhou opened this issue 1 year ago • 9 comments

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

oussamadouhou avatar Sep 17 '24 13:09 oussamadouhou

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

its postgres you cant directly assign it a domain

djsisson avatar Sep 17 '24 14:09 djsisson

@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

eduhdev12 avatar Sep 18 '24 00:09 eduhdev12

@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

djsisson avatar Sep 18 '24 04:09 djsisson

tyty, docs should be updated for this

stevenhuyn avatar Sep 19 '24 05:09 stevenhuyn

Iam using latest version Here iam getting same

image

mrcloudbook avatar Oct 08 '24 10:10 mrcloudbook

@mrcloudbook theres no links if you dont define a domain, without seeing your compose i can't say why this is happening

djsisson avatar Oct 08 '24 10:10 djsisson

I got the solution Thanks

mrcloudbook avatar Oct 09 '24 05:10 mrcloudbook

I got the solution Thanks

@mrcloudbook Hi, can you share your solution?

upokusaev avatar Oct 09 '24 16:10 upokusaev

environment: - BASE_URL=${NEXT_PUBLIC_WEBAPP_URL} - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - NEXTAUTH_URL=${NEXTAUTH_URL}

  just added these bro in my env for container

Aj7Ay avatar Oct 13 '24 16:10 Aj7Ay

I got the solution Thanks

@mrcloudbook Hi, can you please share your solution?

tesar27 avatar Dec 03 '24 12:12 tesar27