SPX
A Docker image that contains the PHP SPX extension, which can be used to view PHP profiling data.
Setup
docker-compose-spx.ymlversion: "3.8"services:nginx-spx:image: wodby/nginx:1.19environment:NGINX_VHOST_PRESET: phpNGINX_BACKEND_HOST: spxNGINX_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.
Find SPX on localhost:8000/?SPX_UI_URI=/&SPX_KEY=dev.