Terminal Installation
Deploy Cloud Trader Pro securely on your local PC or private cloud VPS. Docker handles all dependencies automatically.
Install Docker
Run these commands on your Linux Terminal to install and setup Docker & Compose:
sudo apt update && sudo apt upgrade -y sudo apt install -y curl bzip2 tar git sudo apt install -y docker.io docker-compose-v2 sudo systemctl enable --now docker
Run the Script Installer
Download deployment templates, Docker Compose files, and scripts automatically:
curl -sSL https://raw.githubusercontent.com/bibhutibbb/cloud-trader-pro-build/main/install.sh | sudo bash
Install Docker Desktop
Docker handles execution encapsulation. It isolates credentials locally for complete system security.
- Download and install Docker Desktop for Windows.
- Ensure the WSL 2 backend component is checked during installation setup.
- Restart your computer when prompted.
Run PowerShell Installer
Launch PowerShell as Administrator and paste the following setup script:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/bibhutibbb/cloud-trader-pro-build/main/install.ps1'))Configure App Settings
Navigate to your installation folder (default is /opt/cloudtraderpro on Linux, or C:\CloudTraderPro on Windows), open the configs/ subfolder, duplicate/rename the file app_settings.json.sample to app_settings.json, and update your credentials:
{
"dashboard_password": "your_secure_web_password",
"local_api_key": "shared_secret_for_desktop_tools",
"active_broker": "flattrade",
"jwt_secret": "long_random_string_for_web_tokens",
"session_timeout_minutes": 1440,
"server_port": 8002,
"license_key": "your_license_key_here",
"serve_static_files": false
}Launch Docker Container
Open your terminal or command prompt, change directory to your installation folder, and spin up the services:
Linux VPS:
cd /opt/cloudtraderpro sudo docker compose up -d
Windows PC:
cd C:\CloudTraderPro docker compose up -d
Activate Dashboard
Open your web browser and navigate to the address:
If you haven't filled in your license key inside the JSON settings file, the app dashboard will display an activation panel. Simply paste your activation license key here to automatically unlock all live trading systems instantly.
🌐 Networking & Cloudflare Tunnel Configuration
The application requires a secure HTTPS connection for both UI access and Broker Authentication callbacks. A Cloudflare Tunnel is the safest way to expose the application to the internet without opening firewall ports.
Step 1: Create a Tunnel in Cloudflare Zero Trust
- Log into your Cloudflare Zero Trust Dashboard.
- Navigate to Access → Tunnels → Click Create a Tunnel.
- Select Cloudflare as your connector type, name the tunnel, and save it.
- Under "Install and run a connector", choose Docker and copy the command provided (or copy just the raw
--tokenvalue).
Step 2: Configure the Tunnel Sidecar (Automatic Setup)
To configure the tunnel companion container automatically:
- Open
cloudflare_tunnel_command.txtin a text editor. On Ubuntu Linux, you can open and edit it using nano:cd /opt/cloudtraderpro sudo nano cloudflare_tunnel_command.txt
- Paste the entire
docker runcommand copied from Cloudflare (or paste the raw token string). - Run the automated script:Ubuntu / Linux:
chmod +x setup.sh sudo ./setup.sh
Windows (PowerShell):setup.bat
The setup script will automatically extract the token, update your .env configuration, create a docker-compose.override.yml sidecar container, and boot up both the trader backend and the tunnel!
Step 3: Route Your Domain
In the Cloudflare Tunnel dashboard, go to the Public Hostname tab, click Add a public hostname, and configure the fields:
- Subdomain:
trader(or any subdomain of your choice, e.g.trader.yourdomain.com). - Domain: Select your registered domain.
- Type:
HTTP - URL:
frontend-nginx:80(routing requests internally inside the Docker network to the Nginx frontend container).
Step 4: Broker-Side Handshake
Log into the Developer Portal for your Active Broker (Flattrade, Upstox, or Shoonya), select your App, locate the Redirect URL field, and update it:
- For Remote Server / Cloudflare Tunnel:
https://trader.yourdomain.com/api/auth/callback - For Local Windows PC Setup (No Domain):
http://localhost:8002/api/auth/callback(Note: If you changed the default server port, replace8002with your custom port).
Request a Subdomain from the Developer/Admin (Easiest) - Subject to Availability
If you do not own a custom domain name, you can contact the system administrator or developer to request a subdomain allocation (e.g., yourname.cloudtraderpro.in). The developer can configure this subdomain to point securely to your Cloudflare Tunnel container.
Need Remote Setup Support?
If you run into issues configuring your VPS, static IP, or docker engine, our engineers can assist you directly using secure screen sharing.