- Docker version 26.1.3, build b72abbb
- Docker Compose version v2.27.0
- NGINX REVERSE PROXY
- PHP-FPM
- REDIS
- REDIS-COMMANDER
- MYSQL
- PHPMYADMIN
- SOLR
First step build PHP-FPM image by command:
docker image build --progress=plain --no-cache -t php8:0.0.1 .
Many tools like Composer, Xdebug, Git, Opcache are already enabled
Next step
docker compose up -d
to stop docker services
docker compose down
create file launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html": "${workspaceRoot}\\src"
},
"log": true
}
]
}
Finally open in browser
NGINX PHP-FPM
http://localhost:8080REDIS
http://localhost:8081PHPMYADMIN
http://localhost:8888SOLR
http://localhost:8983
Check the status of the services
- open url http://localhost:8080/health.php
to start wordpress services
docker compose -f docker-compose-wordpress.yml up -d
to stop docker services
docker compose down
Finally open in browser
- WORDPRESS http://localhost
- WP-CLI, first enter the container
docker exec -it wp /bin/bash
, then run from within the containerwp --help
- PHPMYADMIN http://localhost:8888
Enjoi!