If you are using private Docker images on Github Container Registry (GHCR), you may wonder how Coolify can pull those images. If you don’t follow the steps below (or other steps with similar effect), Coolify can’t pull your images.
Here is one way:
ssh USER@COOLIFY_SERVER
docker login ghcr.io -u GITHUB_USER -p GITHUB_PERSONAL_ACCESS_TOKEN
sudo docker restart coolify # not sure this is necessary
Some points:
– I know there is a Github App that you can install on Coolify. I didn’t try it yet, but this is probably the better way
– GITHUB_USER above is just your github username
– GITHUB_PERSONAL_ACCESS_TOKEN can be created via Github’s developer settings
– I used the classical token. Maybe you can also use fine-grained tokens, which is the more modern way.