767ba7d7975dbed14c42f8f5a8c796dcb39b97b2
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
Description
A lightweight and developer-friendly Docker environment for PHP projects.
32 KiB
0 Stars
1 Watchers
0 Forks
Languages
Makefile
90.8%
Shell
7.9%
PHP
1.3%