Skip to content

Docker development stack using Nginx reverse proxy to serve PHP-FPM with multiple service containers like Solr, Redis, Redis Commander, Mysql, phpmyadmin. Developer tools like composer, xdebug and git are enabled by default

License

rosario-fiorella/docker-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX REVERSE-PROXY PHP-FPM

DOCKER STACK:

  • 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

XDEBUG

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

Enjoi!

About

Docker development stack using Nginx reverse proxy to serve PHP-FPM with multiple service containers like Solr, Redis, Redis Commander, Mysql, phpmyadmin. Developer tools like composer, xdebug and git are enabled by default

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published