Tools: Automated Secure Hosting with Cloudflare Tunnel & Docker - Expert Insights

Tools: Automated Secure Hosting with Cloudflare Tunnel & Docker - Expert Insights

🛡️ What Does This Script Do?

🛠️ How to Use It

📋 What Happens Next? 📖 This article is a translation of the original post published on ITpraktika.com (Bulgarian). If you own a server — whether a VPS or a home machine — and want to host websites or monitoring tools, security and configuration can quickly become a headache. This post introduces a single Bash script that handles everything for you: from generating strong passwords to spinning up a fully isolated Docker environment. This tool is built for people who want a professional-grade setup with minimal effort. It automates: The entire setup takes less than a minute. SSH into your Linux server and run these three commands: 1. Download the script: 2. Make it executable: 3. Run the installer: The script will ask you a few questions — whether you want Uptime Kuma, how many WordPress sites you need, and your Cloudflare tunnel token. Once you answer, it generates: Once you've answered all the questions, the script takes care of the rest — including starting all the containers. Your entire infrastructure will be online automatically. 🎉 Note: This script is an ideal solution for developers and sysadmins looking for the right balance between cost, security, and ease of maintenance. Original article (Bulgarian): https://itpraktika.com/hosting-s-cloudflare-tunnel/ Templates let you quickly answer FAQs or store snippets for re-use. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse

Command

Copy

$ -weight: 500;">wget https://gist.fedia.eu/urocibg/8edf74d152594176a1052308054ed36c/raw/HEAD/setup_hosting.sh -weight: 500;">wget https://gist.fedia.eu/urocibg/8edf74d152594176a1052308054ed36c/raw/HEAD/setup_hosting.sh -weight: 500;">wget https://gist.fedia.eu/urocibg/8edf74d152594176a1052308054ed36c/raw/HEAD/setup_hosting.sh chmod +x setup_hosting.sh chmod +x setup_hosting.sh chmod +x setup_hosting.sh ./setup_hosting.sh ./setup_hosting.sh ./setup_hosting.sh - Cloudflare Tunnel — Connects your server to Cloudflare's network without opening ports 80 or 443 on your router or firewall. Your server stays invisible to bots and scanners. - Uptime Kuma — Installs one of the best open-source monitoring tools for tracking your sites and services. - WordPress support — Optionally spins up to 2 independent WordPress sites, each with its own isolated database. - Maximum security — Generates unique 24-character passwords for every component and sets proper file permissions on all config files. - Healthchecks — Intelligently waits for MariaDB to be fully ready before starting your sites, preventing startup race conditions. - An .env file containing all your passwords. - A -weight: 500;">docker-compose.yml with optimized settings. - An initialization SQL script for your databases.