A lightweight and developer-friendly Docker environment for PHP projects.
| docker | ||
| public | ||
| .editorconfig | ||
| .gitignore | ||
| composer.json | ||
| makefile | ||
| README.md | ||
Docker PHP environment
A lightweight and developer-friendly Docker environment for PHP projects.
What you get out of the box:
- PHP 8.4 with popular extensions used in most frameworks.
- Nginx web server tuned for PHP-FPM.
- Handy developer tools (Git, Make, cURL).
- One-line commands to manage the environment.
- Instant Xdebug setup with VSCode integration.
Installed packages
- PHP 8.4
- nginx
- curl
- make
- git
Installed PHP extensions
- pdo_pgsql
- bcmath
- curl
- exif
- zip
- bz2
- gd
Configuration
Set up environment variables in .env:
nano ./docker/.env
Commands
Show available commands:
make help
Run environment (available on APP_PORT):
make up
Stop environment:
make down
Restart environment:
make restart
Publish VSCode Xdebug config:
make vscode-xdebug
Build Docker image:
make build
Publish image:
make push
Cleanup:
make clear