Skip to content

Server requirements ​

What to prepare before you install: a server, a domain with two DNS records, and outbound internet access to the price and blockchain services the platform uses.

5 minutesPlanningSite owner / DevOpsVerified against the platform code

Server size ​

The platform runs many processes at once: the web app, up to 60 Horizon workers, the order processor, the price tracker, a liquidity bot per market, Soketi, the chart service and one bridge per network. These are starting points, not limits:

StageCPURAMDiskSuits
Test / staging4 vCPU8 GB80 GB SSDTrying the platform, a few markets
Launch8 vCPU16 GB160 GB NVMeUp to ~20 markets with liquidity bots, a few thousand users
Growth16 vCPU32 GB320 GB NVMeMany markets, futures and options, heavy traffic

When you grow beyond one server, move PostgreSQL to its own server first, then Redis.

What uses the most

Liquidity for all markets runs in two PHP processes (about 50–100 MB each, with one Binance connection for every provider-backed market), plus up to 128 MB per Horizon worker at peak. The old one-process-per-market layout (PM_LIQUIDITY_MODE=per-market) needs about 100 MB of RAM per market instead.

Software ​

ComponentVersionNotes
Operating systemUbuntu 22.04 or 24.04 LTSThe commands in this documentation are for Ubuntu
PHP8.2 or newer (8.3 recommended)With PHP-FPM for Nginx. Required by composer.json and Laravel 12.
Composer2.xInstalls the PHP packages
PostgreSQL12 or newer (16 recommended)The database (DB_CONNECTION=pgsql)
Redis5 or newer (7 recommended)Queues, cache and sessions
NginxAny current versionWeb server and proxy for WebSockets and charts
Node.js20 LTSBuilds the front-end, runs Soketi, the chart service and the bridges
PM2LatestRuns and restarts all background processes
SoketiLatest (@soketi/soketi)WebSocket server for live updates
RustStableOnly if you use the optional matching engine
Bitcoin CoreCurrentOnly if you offer BTC deposits and withdrawals

PHP extensions ​

The platform and its packages need these extensions:

ExtensionWhy
pgsqlConnects to PostgreSQL
bcmath, gmpExact arithmetic for balances and blockchain amounts
mbstring, intlText handling and formatting
curl, opensslCalls to exchanges, blockchains and payment providers
xml, domRequired by Laravel and several packages
zipComposer package installs
gdImage handling for uploaded logos and icons
sodiumCryptographic signing
pcntl, posixHorizon manages its workers with them
redis (recommended)The fast phpredis client. Without it, set REDIS_CLIENT=predis.

The installation guide installs all of them with one command.

Domain and DNS ​

You need two DNS records pointing to the server's public IP:

RecordExampleUsed for
A (and AAAA for IPv6)yourdomain.comThe exchange and admin panel
A (and AAAA for IPv6)socket.yourdomain.comLive updates (WebSockets)

Add a third record if you host this documentation on a subdomain, for example docs.yourdomain.com.

Both names get free HTTPS certificates from Let's Encrypt during installation.

Email ​

You need an email provider for verification codes, password resets, withdrawal confirmations and admin alerts: any SMTP service, or the Mailgun API. Set it up in Admin → Settings → Email.

Outbound internet access ​

The server must be able to reach these services. Some hosting regions block exchange APIs. Check with curl -I <address> before you choose a provider.

ServiceAddressesNeeded for
Binanceapi.binance.com, stream.binance.com:9443Liquidity bots, prices, provider charts, mini-charts
MEXCapi.mexc.com, wbs.mexc.comMEXC price feeds and chart data (if used)
Bybitapi.bybit.comBybit chart data (if used)
Etherscan APIapi.etherscan.ioDeposit detection on Ethereum, BNB Smart Chain, Polygon
Tronscanapilist.tronscan.orgDeposit detection on Tron
Your node providersEthereum, BNB, Polygon, Solana, TON, XRP endpointsAddresses, withdrawals, balances (see Bridges)
Currency APIapi.currencyapi.comDaily fiat exchange rates (CURRENCYAPI_KEY)
Optional providersSumsub, Unlimit (GateFi), Stripe, Fireblocks, Payeer, Perfect MoneyOnly the ones you switch on
GitHub, npm, PackagistInstalling and updating

Firewall ​

Only SSH, HTTP (80) and HTTPS (443) should be open to the internet. Every other port (database, Redis, Soketi, chart service, bridges, matching engine) is used only inside the server. See Ports & processes.

Owner documentation for the CryptoTech exchange platform.