Setup the Coolify Project

In Coolify, create a new project and an environment to use. Within this, spin up a mySQL database resource.

Now create a new Git based application of the type "Private Repository".

Create and select a private key to be used to connect to your repository. The respective public key needs to be installed in your repository. In the next step select "Docker Compose" as the build pack.

In the General section of your resource's configuration, make sure you point Coolify to the correct docker-compose.yml file.

In order for your application to be able to connect to the database container, it is important to activate the "Connect To Predefined Network" option in the Advanced tab of your resources configuration.

Last updated