A lightweight and developer-friendly Docker environment for PHP projects.
Go to file Use this template
2025-08-21 11:35:42 +03:00
docker PHP 8.4 environment 2025-08-21 11:35:28 +03:00
public PHP 8.4 environment 2025-08-21 11:35:28 +03:00
.editorconfig PHP 8.4 environment 2025-08-21 11:35:28 +03:00
.gitignore PHP 8.4 environment 2025-08-21 11:35:28 +03:00
composer.json PHP 8.4 environment 2025-08-21 11:35:28 +03:00
makefile PHP 8.4 environment 2025-08-21 11:35:28 +03:00
README.md PHP 8.4 environment 2025-08-21 11:35:28 +03:00

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