-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Docker compose file is not recognized when using public GitHub repo #4345
Comments
@alexaka1 as a quick test can u rename to docker-compose-coolify.yaml |
@alexaka1 the blank services, means it just doesnt build, however if you switch to picking Dockerfile and not compose, and use /src/Web/Dockerfile, this builds and deploys just fine (jsut make sure you set port exposes to 8080) |
Same issue unfortunately, but thanks for the suggestion. Starting deployment of Blazor playground to alexaka1.dev.
Preparing container with helper image: ghcr.io/coollabsio/coolify-helper:1.0.4.
docker rm -f t8gos088kwkk0484kcg4og0w
Error response from daemon: No such container: t8gos088kwkk0484kcg4og0w
docker run -d --network coolify --name t8gos088kwkk0484kcg4og0w --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-helper:1.0.4
f6a2b0366c802fa3c0487bcab8125620b5377c1fe99df894b870985c732039e9
docker exec t8gos088kwkk0484kcg4og0w bash -c 'GIT_SSH_COMMAND="ssh -o ConnectTimeout=30 -p 22 -o Port=22 -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" git ls-remote https://github.com/alexaka1/adev-dotnet-blazor-playground main'
229ba957b362f8ace54a8178e0121de3e2cd9606 refs/heads/main
----------------------------------------
Importing alexaka1/adev-dotnet-blazor-playground:main (commit sha HEAD) to /artifacts/t8gos088kwkk0484kcg4og0w.
docker exec t8gos088kwkk0484kcg4og0w bash -c 'git clone -b "main" https://github.com/alexaka1/adev-dotnet-blazor-playground /artifacts/t8gos088kwkk0484kcg4og0w'
Cloning into '/artifacts/t8gos088kwkk0484kcg4og0w'...
docker exec t8gos088kwkk0484kcg4og0w bash -c 'cd /artifacts/t8gos088kwkk0484kcg4og0w && git log -1 229ba957b362f8ace54a8178e0121de3e2cd9606 --pretty=%B'
Try rename docker compose file for coolify
Pulling & building required images.
Removing old containers.
Starting new application.
SOURCE_COMMIT=229ba957b362f8ace54a8178e0121de3e2cd9606 COOLIFY_BRANCH=main docker compose --env-file /data/coolify/applications/sss44swkkoow8socs48oo80k/.env --project-name sss44swkkoow8socs48oo80k --project-directory /data/coolify/applications/sss44swkkoow8socs48oo80k -f /data/coolify/applications/sss44swkkoow8socs48oo80k/docker-compose-coolify.yaml up -d
no service selected
Oops something is not okay, are you okay? 😢
no service selected I would like to get compose working, because I plan on adding more services to the compose file later. |
@alexaka1 you have an invalid character at beginning of file:
clear out your compose file or start fresh compose file hmm maybe this is just some kind of github artifact, as its not in your raw file |
@alexaka1 |
It was the UTF-8 BOM. I don't use them but for whatever reason IntelliJ really likes them on Windows and adds it by default... I removed it and it works now. Thanks @djsisson. |
Error Message and Logs
Steps to Reproduce
https://github.com/alexaka1/adev-dotnet-blazor-playground
/docker-compose.coolify.yaml
as the compose filePreserve Repository During Deployment
Example Repository URL
https://github.com/alexaka1/adev-dotnet-blazor-playground
Coolify Version
v4.0.0-beta.370
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Debian GNU/Linux 12 (bookworm)
Additional Information
Coolify does not seem to recognize my compose file when using a public GitHub repo. The parsed compose file is always empty.
It does not matter which compose file I specify in my repo.
None of the magic env variables are recongized either.
Maybe it's a skill issue on my part, but I do not know what I am doing wrong. I have tried deleting the resource and adding it again, but still the same issue. It does not recognize any other compose files in the repo either.
![Image](https://private-user-images.githubusercontent.com/22166651/388088948-82576deb-fcd7-4455-9643-aab8b63a156e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3Mjg0MDYsIm5iZiI6MTczOTcyODEwNiwicGF0aCI6Ii8yMjE2NjY1MS8zODgwODg5NDgtODI1NzZkZWItZmNkNy00NDU1LTk2NDMtYWFiOGI2M2ExNTZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDE3NDgyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0Njg2MTE5NDc0NDBlMDVmYjFmMTU1ZTQyZWMzMTRkMmJkOGQ1NmUzMmViZTYxMTlkM2Q2MDZkNmNjY2Q3OTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4nQo7iw1CXy2Yxk7Wx3Knrfv-8QCeudFgw9Td4RQkjw)
The text was updated successfully, but these errors were encountered: