Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.58 KB

README.md

File metadata and controls

57 lines (38 loc) · 1.58 KB

XDebug 3.0 in Docker 4.2.0

xdebug

The configuration in this repository uses PHP 8.0 - Apache and MySQL 8.0.

Change the docker images to the the PHP, MySQL or server versions.

FROM php:8.0-apache
RUN cd /tmp/xdebug && git checkout xdebug_3_0
db:
  image: mysql:8.0
adminer:
  image: adminer:4.8.1-standalone

Pulls the latest XDebug 3.0 from GitHub. Can be connected from VSCode to step debug the developing WordPress plugin.

docker

Warning

Don't use the default configuration in production environment. Change the passwords.

Project Organization

Folder Description
.vscode VSCode files
config Configuration files (php.ini, xdebug.ini, wp-config.php, etc.)
docker Dockerfiles and docker-compose files
images Images
mysql-data MySQL data directory
wordpress-core Core WordPress files - Downloaded from wordpress.org
wp-head-inject-plugin WordPress plugin

WP Head Inject

A previous WordPress plugin project on GitHub was adopted to demonstrate the XDebug 3.0 in Docker 4.2.0

Docker Compose Up (--Build)

docker compose -f docker/wp-docker-compose.yml up --build

docker-in-action

Exposed PORTs from Dockerhost

Docker WP