Skip to main contentNedix.io

SPX

A Docker image that contains the PHP SPX extension, which can be used to view PHP profiling data.

Setup

docker-compose-spx.yml
version: "3.8"
services:
nginx-spx:
image: wodby/nginx:1.19
environment:
NGINX_VHOST_PRESET: php
NGINX_BACKEND_HOST: spx
NGINX_SERVER_ROOT: /var/www/html/public

Usage

Step 1.

Start the containers:

docker compose -f docker-compose.yml -f docker-compose-spx.yml up -d

Step 2.

Navigate to your page on localhost:8000 to capture the profiling data.

Step 3.