up-to-dotted-lineInstallation Guide

This page shows how to launch the SPX Server locally with Docker—using either the personalized Docker Compose from the License Keys page or your own template—and verify it responds on your machine.

In this Installation Guide you’ll perform one simple task: start the SPX Server in Docker and confirm it’s reachable on your computer. After selecting a subscription on https://simplephysx.com, you can either use a personalized Docker Compose file (fastest) or a custom template (e.g., to pin an image tag). We’ll cover the prerequisites, show how to bring the container up, and how to check that the server answers locally.

Requirements

  • Docker Desktop

    • Windows: Install Docker Desktop for Windows (WSL 2 backend). Ensure WSL 2 is enabled, the WSL kernel update is installed, and virtualization is enabled in BIOS/UEFI. Start Docker Desktop before proceeding.

    • macOS: Install Docker Desktop for Mac (Intel or Apple Silicon) and start it.

    • Quick check:

      docker --version
      docker compose version
  • Python: >=3.9 (tested in CI on 3.9–3.12). pip available (or Conda if you prefer Conda environments).

  • Account & Subscription: An SPX account on https://simplephysx.com with an active subscription (e.g., Community). After choosing a plan, you can either download a personalized Docker Compose file (includes your key) or copy a product key to use as SPX_PRODUCT_KEY.

  • Network: Internet access to pull images from Docker Hub and local port 8000 available.

  • Basics for verification: A web browser or curl/PowerShell (Invoke-WebRequest) to check http://localhost:8000/health.


Step-by-Step Installation Process

Create your account & choose a subscription

  • Go to https://simplephysx.com and create an account / sign in.

  • Select a subscription plan.

  • Retrieve your product key (SPX_PRODUCT_KEY) and (if available) a personalized Docker Compose file.

The downloaded Compose file is personalized (it embeds your key). Treat it like a secret and do not share it publicly.

Choose your setup path

Use the personalized Compose you just downloaded:

  1. Save the file as docker-compose.yml in your project folder.

  2. Start the server:

  3. Verify the server is healthy:

    Success criteria: curl exits with code 0 and returns JSON with "status":"ok".

Path B — Custom image/tag (e.g., specific alpha) or team template

Create a minimal Compose + .env file (recommended for teams because the key stays out of YAML).

  1. Create .env (do not commit it; treat it as a secret):

  2. Create docker-compose.yml:

  3. Start the server:

  4. Verify the server is healthy:

    Success criteria: curl exits with code 0 and returns JSON with "status":"ok".

Path C - Installer + packs (spx-examples)

Use the installer when you want a ready-to-run bundle of models, supporting services (MQTT/BACnet/KNX/etc.), and optional UI.

  1. Clone the public spx-examples repo:

  2. Run the installer wizard:

    • macOS/Linux: ./spx-install.sh

    • Windows PowerShell: pwsh ./spx-install.ps1

  3. The generated bundle lives in build/spx-generated/. Update .env with your key, then start it with spx-start.sh or spx-start.ps1.

For full details, see Installer and Packs (spx-examples).

Common commands (both paths)

Verify

Health endpoint:

Expected response shape (values may differ):

Logs

Stop

Next steps

Last updated