The Docker build pack is a powerful one. You can use your Dockerfile to build your applications or service. It means you can deploy any unsupported (by Coolify) applications, services, anything, where a simple Docker file is enough!
Docker Compose is not supported yet.
Important: it is temporary solutions, more robust version coming soon
Sample with Baserow
I choose Baserow as an example application because the config can be tweaked to allow for different ways of running the application. You can for example try using a postgres and redis deployed with coolify and pass their urls as variables to Baserow application.
- Create a repository on GitHub where you will keep only the Dockerfile
- Create na push a simple dockerfile, than only mentions the image you want to use, like so:
- Create an application on coolify:
- Select Applications
- Click add Application (the green button in the top left corner)
- Select gitsource that has access to the repository you created in step 2
- Select you repository and appropriate branch
- Select docker target (be mindful of where you deploy if you have extra dependencies such as databases)
- Select Docker in Build Pack Selection screen
- Make sure the port selected in the form is the port your application exposes. (for example in the case of baserow it will be 80 instead of 3000)
- Save app - the next steps will only be possible once you save your configuration.
- Add any env variables that are required to start the container in the top right
Secretspanel - in case of Baserow the only thing you need to add is
BASEROW_PUBLIC_URLwhich should correspond to the url you've set for the application
- If your application needs volumes mounted / to persist data between runs safely add persistent storage in the bottom right
Persistent Storagepanel. In the case of Baserow you need to add only
/baserow/dataas a volume.
- Optionally switch on debug logs - should be the law option in the app settings panel.
- Run / rebuild your application - it should start just fine.