Skip to content

Deploy Guide: Docker Standalone

This guide will cover installation of Plxtra XOSP on a standalone Linux machine running Docker, with both LetsEncrypt certificates and a Sample recording of exchange data being continuously replayed.

Plxtra is a relatively light-weight installation, with the ability to scale as your needs grow. Basic hardware specifications are as follows:

CategoryMinimumRecommended
Architecturex86-64x86-64
VCPUs24
Memory4GB8GB
Storage10GB20GB

We recommend a distribution supported by both Docker Engine and PowerShell. See the table below:

Supported OSPowerShellDocker
Debian 11 / 12InstallInstall
RHEL 8 / 9InstallInstall
Ubuntu 22.04 / 24.04InstallInstall

To follow this guide you will need a terminal, and a user with membership in the docker group.

Optional: Create a new user and group for managing the Plxtra installation

You will need a root account or sudo access:

su -

Create a new user plxtra with docker access:

groupadd plxtra
useradd -m -g plxtra -G docker plxtra
passwd plxtra
exit

Switch to the plxtra user to continue this guide:

su plxtra
  1. Follow the instructions appropriate to your distribution to install Docker and PowerShell.

  2. Start Powershell.

    pwsh
  3. Create a folder xosp, which will be the location of your XOSP configuration files.

    mkdir xosp
    cd xosp
  4. Download an XOSP source code release.

XOSP releases are available from GitHub. The latest release is recommended.

  1. Extract the source code release into the xosp directory:

    tar -xf xosp.tar.gz --strip-components=1
  2. Configure your installation, specifying the profiles for LetsEncrypt and the Sample market.

    ./XOSP-Configure.ps1 LetsEncrypt Samples

    The script will inform you that you need to configure your root domain name. XOSP will use several subdomains beneath it.

  3. Edit the XOSP-Params.json file and change the RootDomainName value to your domain. Use whatever text editor you are familiar with.

    nano XOSP-Params.json
    XOSP-Params.json
    {
    "RootDomainName":"<Your Root Domain Here>"
    ...
    }
  4. Run Configure again. This will apply your new domain configuration. No need to specify the profiles again - it’ll remember from last time!

    ./XOSP-Configure.ps1
  5. Run Install. This will create all the containers, set them up according to the configuration, and retrieve the LetsEncrypt certificates for your domain.

    ./XOSP-Install.ps1

If all went well, your Plxtra XOSP installation should now be complete and accessible from the internet.

There is one final step required, which is to schedule the LetsEncrypt certificate renewal. The XOSP-Renew.ps1 script is used to perform this task.

You can either schedule it manually to run every 90 days, or if your distribution is using systemd, scheduling can be performed automatically with the following command:

./XOSP-Renew.ps1 install

The automated scheduling runs as the current user, rather than system-wide, so you will also need the lingering option enabled for your user.

loginctl enable-linger $(whoami)
  • User Registration to begin adding new Users and Trading Accounts
  • Symbol Registration to add some new symbols