Skip to content

📦 Overview

Welcome to the Gaming Platform PAM Deployment Guide. This documentation explains how to acquire servers, install Docker, configure databases, deploy backend modules, and prepare the whitelabel frontend.

  • 🛒 Buy Domains & VPS
  • 🛡️ Configure Cloudflare
  • 🔌 Connect via SSH to each VPS
  • 🐳 Install Docker on Your VPS
  • 🗄️ Set Up Database First
  • ⚙️ Deploy the Aggregator API + Backoffice
  • 🎨 Deploy the Whitelabel

🌐 Buy Your Domain

You can purchase your domain from any of these trusted providers:

  • GoDaddy (most recommended)
  • AWS Route 53
  • DigitalOcean Domains

Once purchased, you will point the DNS to Cloudflare.

🖥️ Buy VPS Servers

These VPS providers are recommended:

  • Luminet (recommended VPS provider)
  • DigitalOcean Droplets
  • AWS EC2
EnvironmentCPURAMDisk
Production Project (API + Backoffice)4 vCPU8 GB10–50 GB SSD
Staging Project2 vCPU4 GB10–20 GB SSD
Production Database8 vCPU16 GB200 GB SSD
Staging Database2 vCPU4 GB20 GB SSD
Whitelabel Server1 vCPU1 GB10 GB SSD

🔒 HTTPS Configuration with Cloudflare

The platform uses Cloudflare to manage HTTPS, DNS, and proxy protection. Cloudflare handles SSL certificates automatically, so no manual Nginx or Certbot configuration is required on the server.

  1. Point your domain to Cloudflare and configure the DNS records for each subdomain:

    • admin.example.com203.0.113.10
    • aggregator.example.com203.0.113.10
    • staging-admin.example.com203.0.113.12
    • staging-aggregator.example.com203.0.113.12
  2. Set the Proxy Status to 🟠 Proxied for all A records to protect your server and enable Cloudflare features.

  3. Use the Flexible SSL mode. In this mode:

    • Traffic between the browser and Cloudflare is encrypted (HTTPS).
    • Traffic between Cloudflare and your origin server uses HTTP.
  4. Cloudflare automatically generates and renews your SSL certificate. No SSL configuration is required inside Docker or Nginx.

With Cloudflare configured, your environment will serve HTTPS securely without extra steps on the server.

🔌 Connect via SSH to Each VPS

After creating the VPS and pointing your domain to Cloudflare, connect to each server using SSH from your local machine:

bash
# Production Project (API + Backoffice)
ssh [email protected]

# Production Database
ssh [email protected]

# Staging Project
ssh [email protected]

# Staging Database
ssh [email protected]

# Whitelabel Server
ssh [email protected]

Once connected to each VPS, you can proceed to install Docker using the commands below.

🐳 Install Docker on Each VPS

Below is the EXACT Docker installation you already tested and works in your VPS.

bash
sudo apt update && sudo apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y

# 1. Configure official Docker repository
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# 2. Install Docker and Compose
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

# 3. Enable and start Docker
sudo usermod -aG docker $USER
sudo systemctl enable docker
sudo systemctl enable containerd
sudo systemctl start docker
sudo systemctl start containerd

# Configure log rotation
sudo tee /etc/docker/daemon.json > /dev/null <<EOF
{
  "log-driver": "json-file",
  "log-opts": { "max-size": "10m", "max-file": "3" }
}
EOF

sudo systemctl restart docker
newgrp docker

# 4. Verify installation
docker --version
docker compose version

📁 Step 1 – Configure and Start the Database

The database MUST be created before deploying any backend or frontend component.

Click here to go to the database instructions: Open Database Setup →

🧩 Step 2 – Deploy Backend (Aggregator API + Backoffice)

Once the DB is running, continue with backend deployment using the Project setup.

Open the backend deployment instructions: Open Project Setup →

🎨 Step 3 – Deploy the Whitelabel

After backend deployment, configure and deploy the Whitelabel following the Whitelabel setup guide.

Open the whitelabel deployment instructions: Open Whitelabel Setup →


© 2025 Gaming Platform – PAM Deployment Documentation