From e5d561546558f2392d725ab042cf69a7b21670e1 Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Tue, 9 Dec 2025 08:17:46 +0000 Subject: [PATCH] Add coolify (ct) --- ct/coolify.sh | 46 +++++++++++++++++++++++++++ frontend/public/json/coolify.json | 52 +++++++++++++++++++++++++++++++ install/coolify-install.sh | 39 +++++++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 ct/coolify.sh create mode 100644 frontend/public/json/coolify.json create mode 100644 install/coolify-install.sh diff --git a/ct/coolify.sh b/ct/coolify.sh new file mode 100644 index 000000000..63c537498 --- /dev/null +++ b/ct/coolify.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://coolify.io/ + +APP="Coolify" +var_tags="${var_tags:-docker;paas}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-4096}" +var_disk="${var_disk:-30}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /data/coolify ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + msg_info "Updating Coolify" + $STD bash <(curl -fsSL https://cdn.coollabs.io/coolify/install.sh) + msg_ok "Updated Coolify" + msg_ok "Updated successfully!" + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}" diff --git a/frontend/public/json/coolify.json b/frontend/public/json/coolify.json new file mode 100644 index 000000000..197c4fc71 --- /dev/null +++ b/frontend/public/json/coolify.json @@ -0,0 +1,52 @@ +{ + "name": "Coolify", + "slug": "coolify", + "categories": [ + 6 + ], + "date_created": "2025-12-09", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8000, + "documentation": "https://coolify.io/docs", + "config_path": "/data/coolify", + "website": "https://coolify.io/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/png/coolify.png", + "description": "Coolify is an open-source & self-hostable alternative to Heroku, Netlify, and Vercel. It helps you manage your servers, applications, and databases on your own hardware with Docker. Deploy any application from Git repositories, Docker images, or use pre-built templates.", + "install_methods": [ + { + "type": "default", + "script": "ct/coolify.sh", + "resources": { + "cpu": 2, + "ram": 4096, + "hdd": 30, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "Initial setup will be done via the web interface on first access.", + "type": "info" + }, + { + "text": "Coolify has built-in auto-updates. You can configure update frequency in Settings.", + "type": "info" + }, + { + "text": "Coolify requires SSH access to manage deployments. SSH is enabled automatically.", + "type": "info" + }, + { + "text": "This container uses Docker-in-Docker (nesting) for application deployments.", + "type": "warning" + } + ] +} diff --git a/install/coolify-install.sh b/install/coolify-install.sh new file mode 100644 index 000000000..bd35b2643 --- /dev/null +++ b/install/coolify-install.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://coolify.io/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y \ + git \ + openssl +msg_ok "Installed Dependencies" + +msg_warn "WARNING: This script will run an external installer from a third-party source (https://coolify.io/)." +msg_warn "The following code is NOT maintained or audited by our repository." +msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" +msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "→ https://cdn.coollabs.io/coolify/install.sh" +echo +read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM +if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then + msg_error "Aborted by user. No changes have been made." + exit 10 +fi + +msg_info "Installing Coolify (Patience - this installs Docker and pulls containers)" +$STD bash <(curl -fsSL https://cdn.coollabs.io/coolify/install.sh) +msg_ok "Installed Coolify" + +motd_ssh +customize +cleanup_lxc