HollaEx®
⚙️ DashboardStart →
  • HollaEx® — The Crypto Exchange Solution
  • ☁️Cloud Operators
    • Launching the Exchange
    • Setting Domain for Cloud Exchanges
    • Easy SMTP for Cloud Exchanges
    • SEO Settings for Cloud Exchanges
      • SEO Advanced Settings
  • ⚙️Operating Your Exchange
    • Operator Control Panel
      • General
      • Users
      • User Profile
      • Assets
      • Markets
      • Stakes
      • Sessions
      • Plugins Apps
      • Trading Fees & Account Tiers
      • Roles
      • Chat
      • Billing
    • Customize Exchange
      • Browser Tools
        • Enter Edit Mode
        • Operator Controls (Visuals)
        • Console
      • Plugins
      • Forked Repo
    • Fiat Controls
      • Initial Setup
      • Setting Up Fiat On/ Off Ramp
      • Editing Deposit & Withdrawal Fees
      • Users Making Fiat Deposit
      • Users Trading With Fiat
      • User Making Fiat Withdrawal
    • Staking
    • OTC Broker
    • P2P
      • P2P Overview
      • P2P Setup
      • P2P Troubleshooting
      • P2P Vendor Flow
    • Smart Chain Trading
    • Assets & Trading Pairs
      • Add New Assets & Trading Pairs
      • Configure Pair Parameters
    • Set up the SMTP Email
      • Set up SMTP with AWS SES
      • Set up SMTP with Mailgun
      • Set up SMTP with SendGrid
      • Test the SMTP with Gmail
    • Enabling reCAPTCHA
    • Email Customization & Audit
    • DeFi Asset Staking Process
  • 🧩Plugins
    • HollaEx Plugins
      • Announcements
      • Bank
      • AWS SNS (Text Messages - SMS)
      • KYC
      • Automatic KYC
      • Messente
      • Advanced Referral
      • CoinMarketCap
      • Guardarian
    • Install Plugins
    • Developing Plugins
      • Development Walkthrough: Hello-Plugin
        • Initialization
        • Configuration
        • Scripting
        • Web View
        • The Final Product & Installation
      • Advanced
        • Initialization
        • Config
        • Server Script
        • Plugin Libraries
        • Web View
        • Final Plugin Product
        • Advanced Tutorial: Using the user meta field
        • Advanced Tutorial: Adding a new database table column
        • Advanced Tutorial: Creating a new database table
      • Simple Wallet Example
      • Web View Development
        • Overview
        • External dependencies
        • Getting started
        • Basic Tutorial: Hello Exchange Plugin web view
        • Advanced Tutorial: KYC Plugin web views
    • Bank Integration
      • Handling Deposits
      • Handling Withdrawals
  • 👷Developers
    • API Guide
      • API Example Scripts
    • Run Dev Mode
    • Build a New Front-end Interface
  • 🧰On-Premise Operators (Advanced Only)
    • On-Premise Exchange Setup
      • Getting Started — Requirements
      • Installation
      • Server Setup
      • Web Setup
      • Production
    • CLI How-Tos
      • Start Exchange
      • Stop Exchange
      • Upgrade Exchange
        • Build and Apply the Code Changes
      • Get Exchange Logs
      • Get a Backup and Restore
      • Exchange Migration
      • Command List
    • Run Exchange on Kubernetes
    • Troubleshooting Guide
  • 🚀Advanced
    • SEO Optimization
    • Nginx
    • Rate Limits
    • Database
      • Upgrade Database
    • Dependencies
    • Contents Delivery Network
      • Cloudflare CDN for HollaEx
      • CloudFront CDN for HollaEx
    • Load Balancer
      • AWS ELB
      • DigitalOcean LB
    • Customize Kubenretes Ingress
    • Exchange Keys
      • Exchange API Keys Troubleshoot
    • HollaEx on non-Linux
      • HollaEx on Windows
      • HollaEx on macOS
    • The Network Tool Library
      • Accessing the Network Tool Library
      • Functions
        • WebSocket
      • Simple Example: Creating a User and Wallet
      • Getting More Interesting: Orders with the Tools
        • Setup: Using the transferAsset function
        • Creating and Monitoring a Sell Order
        • Settling Fees
      • Private HollaEx Network
    • Docker Content Trust (DCT)
    • Revenue Sharing
  • 📦Releases
    • Release Notes
    • Side Notes
  • ➡️External Links
  • Blogs
  • Forum
  • Videos
  • Twitter X
  • Telegram
  • Interactive Demo
  • Discord Community
  • API Documentation
  • Tools Library Documentation
  • Node Library Documentation
  • Plugins Documentation
Powered by GitBook
On this page
  • Custom credentials for Databases
  • Redis
  • PostgreSQL
  • InfluxDB
  • External Databases
  • Redis
  • PostgreSQL
  • InfluxDB
  1. Advanced

Database

Custom credentials for Databases

By default, credentials for the back-end and database components are using the default ones set by the HollaEx Kit.

This setup is okay for demonstrative, small production exchanges in a closed environment. But if you are looking for better security, setting up the custom credentials for back-end is important.

> Updating the values below may break the exchange if you already have set up the existing one. Modifying credentials is only allowed before running the hollaex setup.

Redis

You can set your credentials from your secret file in your HollaEx Kit/settings.

HOLLAEX_SECRET_REDIS_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_REDIS_PORT=6379
HOLLAEX_SECRET_REDIS_PASSWORD=hollaex
HOLLAEX_SECRET_PUBSUB_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_PUBSUB_PORT=6379
HOLLAEX_SECRET_PUBSUB_PASSWORD=hollaex

While on the exchange setup, HollaEx CLI will create a Redis container based on the provided values above.

PostgreSQL

You can set your credentials from your secret file in your HollaEx Kit/settings.

HOLLAEX_SECRET_DB_NAME=hollaex
HOLLAEX_SECRET_DB_USERNAME=hollaex
HOLLAEX_SECRET_DB_PASSWORD=hollaex
HOLLAEX_SECRET_DB_HOST=$ENVIRONMENT_EXCHANGE_NAME-db
HOLLAEX_SECRET_DB_PORT=5432

While on the exchange setup, HollaEx CLI will create a PostgreSQL container based on the provided values above.

InfluxDB

You can set your credentials from your secret file in your HollaEx Kit/settings.

HOLLAEX_SECRET_INFLUX_DB=hollaex
HOLLAEX_SECRET_INFLUX_HOST=$ENVIRONMENT_EXCHANGE_NAME-influxdb
HOLLAEX_SECRET_INFLUX_PORT=8086
HOLLAEX_SECRET_INFLUX_USER=hollaex
HOLLAEX_SECRET_INFLUX_PASSWORD=hollaex

While on the exchange setup, HollaEx CLI will create an InfluxDB container based on the provided values above.

External Databases

By default, HollaEx CLI runs all necessary backend servers (Redis, PostgreSQL, InfluxDB) automatically along with the rest of the HollaEx workloads.

It is enough for small or medium size exchange but if you are considering scaling up and have a larger load, you can run HollaEx with an external custom backend system of yours as you wish.

You should set up the external Redis which is reachable from your HollaEx server.

To disable HollaEx CLI to create built-in Redis, please set the value below as false. You could find this value in your configmap file in your HollaEx Kit/settings.

ENVIRONMENT_DOCKER_COMPOSE_RUN_REDIS=false

You can set the endpoint, port, and password for your Redis connection at your secret file in your HollaEx Kit/settings.

HOLLAEX_SECRET_REDIS_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_REDIS_PORT=6379
HOLLAEX_SECRET_REDIS_PASSWORD=hollaex

HOLLAEX_SECRET_PUBSUB_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_PUBSUB_PORT=6379
HOLLAEX_SECRET_PUBSUB_PASSWORD=hollaex

Please run hollaex restart to apply once you are all set.

Separated Redis for Pub-Sub (Optional)

If you are looking for a more advanced load balancing, it is also possible to separate the pub-sub feature of Redis (for internal communication of HollaEx servers) to a separate one.

You should set up the additional Redis for pub-sub which is reachable from your HollaEx server.

By default, the HollaEx server uses the same Redis host for handling all pub-sub and the rest of caching related jobs.

You can set the endpoint, port, and password for your pub-sub Redis connection at your secret file in your HollaEx Kit/settings.

HOLLAEX_SECRET_PUBSUB_HOST=$ENVIRONMENT_EXCHANGE_NAME-redis
HOLLAEX_SECRET_PUBSUB_PORT=6379
HOLLAEX_SECRET_PUBSUB_PASSWORD=hollaex

Please run hollaex restart to apply once you are all set.

You should set up the external PostgreSQL Database which is reachable from your HollaEx server.

To disable HollaEx CLI to create build-in PostgreSQL, please set the value below as false. You could find this value at your configmap file in your HollaEx Kit/settings.

ENVIRONMENT_KUBERNETES_RUN_POSTGRESQL_DB=false

You can set the endpoint, port, and credentials for your PostgreSQL connection at your 'secret' file in your HollaEx Kit/settings.

HOLLAEX_SECRET_DB_NAME=hollaex
HOLLAEX_SECRET_DB_USERNAME=hollaex
HOLLAEX_SECRET_DB_PASSWORD=hollaex
HOLLAEX_SECRET_DB_HOST=$ENVIRONMENT_EXCHANGE_NAME-db
HOLLAEX_SECRET_DB_PORT=5432

Please run hollaex restart to apply once you are all set.

You should set up the external InfluxDB Database which is reachable from your HollaEx server.

Run hollaex toolbox --influxdb_migration (available from the CLI v1.9) to migrate chart data into the new InfluxDB. The chart data are stored at your PostgreSQL.

To disable HollaEx CLI to create build-in InfluxDB, please set the value below as false. You could find this value in your configmap file in your HollaEx Kit/settings.

ENVIRONMENT_KUBERNETES_RUN_INFLUXDB=false

You can set the endpoint, port, and credentials for your InfluxDB connection at your 'secret' file in your HollaEx Kit/settings.

HOLLAEX_SECRET_INFLUX_DB=hollaex
HOLLAEX_SECRET_INFLUX_HOST=$ENVIRONMENT_EXCHANGE_NAME-influxdb
HOLLAEX_SECRET_INFLUX_PORT=8086
HOLLAEX_SECRET_INFLUX_USER=hollaex
HOLLAEX_SECRET_INFLUX_PASSWORD=hollaex

Please run hollaex restart to apply once you are all set.

PreviousRate LimitsNextUpgrade Database

Last updated 1 year ago

Please refer section to migrate your existing data into the new DB.

🚀
Backup and Restore
Redis
PostgreSQL
InfluxDB