- 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
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
Enjoi!