1.8 Self Hosted PaaS

1.7.1 Coolify

1.7.1 Coolify

Installation

Source: https://www.youtube.com/watch?v=6IZF_VOlOJM&t=73s

Setup Coolify Control Plane

1. The first step is to create a docker vm that will serve as the coolify control plane. It will only need 2CPU's and 4GB of RAM with 30GB of storage. This is thus not the VM you will run your applications on! It is only to control the other servers the applications will be deployed upon.

2. After creating a docker vm it is time to install coolify on that docker vm. According to its official documentation we can do that with the following command

env DOCKER_ADDRESS_POOL_BASE=172.16.12.0/24 DOCKER_ADDRESS_POOL_SIZE=20 DOCKER_POOL_FORCE_OVERRIDE=true bash -c 'curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash'

3. Then to reach the 

Access Control Plane behind and existing reverse proxy

  1. https://github.com/coollabsio/coolify/discussions/3097
  2. What is important is this in your caddy server, you need to have 3 records for coolifyplane.com : /terminal/ws -> 6002 and /app -> 6001. You need to have one input with location /app and one with location: terminal/ws

Setup Worker Node

1. Next is creating a second docker VM with (simply using proxmox helper script). But this time with more resources like 4 vCPU, 8 GB of RAM and 150GB of storage

2. After that has been setup it is time to allow the Coolify control plane VM access to your worker node over SSH. 

3. Enter your Coolify Dashboard and head over to servers 

4. Generate a new key pair

5. Then copy paste the public key on your worker node inside /.ssh/authorized_keys

sudo nano .ssh/authorized_keys

6. Then we need to change the sshd_ file with

sudo nano /etc/ssh/sshd_config

7. In here we need to make sure that PermitRootLogin is set to YES. If not then do this. 

8. 

1.7.2 Dokploy