Dockerized Execution Engine

Terminal Installation

Deploy Cloud Trader Pro securely on your local PC or private cloud VPS. Docker handles all dependencies automatically.

1

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
2

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
3

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
}
Security Advice: Avoid leaving default password settings. Your trading console handles automated trades—make sure your passwords and secrets are unique.
4

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
5

Activate Dashboard

Open your web browser and navigate to the address:

http://localhost:8002

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.

6

🌐 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

  1. Log into your Cloudflare Zero Trust Dashboard.
  2. Navigate to Access → Tunnels → Click Create a Tunnel.
  3. Select Cloudflare as your connector type, name the tunnel, and save it.
  4. Under "Install and run a connector", choose Docker and copy the command provided (or copy just the raw --token value).

Step 2: Configure the Tunnel Sidecar (Automatic Setup)

To configure the tunnel companion container automatically:

  1. Open cloudflare_tunnel_command.txt in a text editor. On Ubuntu Linux, you can open and edit it using nano:
    cd /opt/cloudtraderpro
    sudo nano cloudflare_tunnel_command.txt
  2. Paste the entire docker run command copied from Cloudflare (or paste the raw token string).
  3. 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, replace 8002 with your custom port).
⚠️ Critical: Ensure there are no trailing slashes or spaces. The URL must match the broker registration exactly.

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.