Deployment Overview of Cloudron on Server¶
Prerequisites and Basic Requirements¶
To ensure a successful deployment, the following requirements must be met:
-
Operating System: Ubuntu (64-bit).
-
Privileges: Root access or sudo privileges are required for all installation steps.
-
Domain: A valid domain managed via DNS is required to issue SSL certificates.
-
Ports:
-
80(HTTP) for Certbot validation and redirection. -
443(HTTPS) for secure application access.
FQDN of the final panel on the hostkey.in domain¶
The application is accessible via a specific subdomain template. The following table defines the structure of the Fully Qualified Domain Name (FQDN):
| Parameter | Value |
|---|---|
| Prefix | cloudron |
| Domain | hostkey.in |
| Full template | cloudron{Server_ID_from_Invapi}.hostkey.in |
Additionally, a secondary subdomain is configured for access: my.cloudron{Server_ID_from_Invapi}.hostkey.in.
File and Directory Structure¶
The installation process creates several directories and configuration paths on the system:
-
/home/yellowtent/box: The primary directory used to determine if Cloudron is already installed. -
/usr/local/lib/docker/cli-plugins/: Location of the Docker Compose plugin. -
/etc/apt/sources.list.d/: Directory where existing Docker and Nginx sources are removed during setup.
Application installation process¶
The application is installed using a dedicated developer script that performs an automated system reconfiguration. The process follows these steps:
-
Environment Cleanup:
-
Existing services such as
nginx,nodejs, anddockerare stopped and disabled to prevent conflicts. -
Standard Docker packages (
docker-ce,containerd.io, etc.) and Nginx/NodeJS packages are purged from the system. -
Script Acquisition: The official Cloudron setup script is downloaded from
https://cloudron.io/cloudron-setupto/tmp/cloudron-setup. -
Execution: The installation script is executed with executable permissions. This script handles the core installation of the Cloudron environment.
-
System Reboot: A system reboot is performed to finalize the changes made by the installer.
-
Plugin Installation: The Docker Compose plugin (version
v2.24.0) is manually installed into/usr/local/lib/docker/cli-plugins/to ensure compatibility with Cloudron's container management.
Access Rights and Security¶
Security is managed through the following measures:
-
SSL/TLS: SSL certificates are obtained via Certbot for both the primary domain (
cloudron{Server_ID_from_Invapi}.hostkey.in) and themy.subdomain to prevent browser SAN mismatch errors. -
Service Management: Standard web server services (Nginx, Node.js) are managed by the Cloudron environment rather than standalone system packages.
Databases¶
The application manages its own database ecosystem within its internal containerized environment. Specific connection details and storage locations are handled internally by the Cloudron platform after the initial setup is complete.
Docker Containers and Their Deployment¶
Cloudron operates as a container-orchestrated platform. The deployment includes:
-
Docker Engine: Installed via the official installation script to manage all application services.
-
Docker Compose Plugin: Deployed at
/usr/local/lib/docker/cli-plugins/docker-composeto facilitate multi-container management.
Custom Scripts and Additional Setup¶
The following actions are performed during or after the main installation:
-
DNS Configuration: An additional
Arecord is created for themy.prefix via the provider's DNS API to ensure the secondary subdomain resolves correctly. -
SSL Provisioning: A configuration step uses Certbot with the
--nginxplugin to automatically secure the primary andmy.subdomains using an email address provided in the configuration ([email protected]).
Application Update Instructions¶
To update the Cloudron application, follow the procedure dictated by the internal management interface:
-
The system is designed to manage its own updates for all hosted applications via the Cloudron dashboard.
-
For core system changes, users should refer to the official Cloudron documentation regarding their built-in update mechanisms.
Location of configuration files and data¶
Configuration files and application data are managed by the Cloudron platform. The primary installation state is tracked in /home/yellowtent/box.
Available ports for connection¶
The following ports are utilized:
-
443: External HTTPS access to the panel. -
80: HTTP (used for SSL redirection and validation).
Starting and Stopping the application¶
Application management is handled through the Cloudron dashboard or via system commands if interacting with the underlying containers:
- To manage core services, use standard systemctl commands for any remaining host-level services, though most application logic resides within Docker.