
Fredy Acuna / October 29, 2024 / 2 min read
Before installing Coolify, ensure you have the following:
If Docker is not installed, you can install it using the following commands:
sudo apt update
sudo apt install -y docker.io
sudo systemctl enable --now docker
Verify that Docker is running:
sudo docker --version
Install Docker Compose using this command:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Verify the installation:
docker-compose --version
Clone the Coolify repository from GitHub:
git clone https://github.com/coollabsio/coolify.git
cd coolify
Copy the .env file and make necessary adjustments:
cp .env.example .env
Modify the .env file to match your server and domain settings.
Start Coolify using Docker Compose:
docker-compose up -d
Coolify will now start in the background.
Once Coolify is up and running, you can access it via your domain or server IP address on port 3000. For example:
http://your-domain-or-ip:3000
To set up SSL using Let's Encrypt, update your .env file with your domain name and enable the ENABLE_SSL option.
Then, restart Coolify:
docker-compose down
docker-compose up -d
You should now have Coolify running with SSL enabled.
That's it! You have successfully installed Coolify in self-hosted mode. For further configurations and detailed usage, refer to the official documentation.