Skip to content

Add shared database socket support and WebP GD support for PHP 8.4#310

Open
vatsal-bhakodia wants to merge 2 commits into
sprintcube:masterfrom
vatsal-bhakodia:master
Open

Add shared database socket support and WebP GD support for PHP 8.4#310
vatsal-bhakodia wants to merge 2 commits into
sprintcube:masterfrom
vatsal-bhakodia:master

Conversation

@vatsal-bhakodia
Copy link
Copy Markdown

Summary

This PR improves the Docker setup by adding shared database socket support between the webserver and database containers, and enables WebP support for the PHP 8.4 GD extension.

Changes

  • Mounts a shared MySQL/MariaDB socket directory into both the webserver and database containers.
  • Configures pdo_mysql.default_socket to use /run/mysqld/mysqld.sock.
  • Adds empty-password compatibility environment variables for MySQL/MariaDB local development setups.
  • Adds libwebp-dev to the PHP 8.4 image.
  • Enables WebP support in the PHP 8.4 GD extension using --with-webp.

Why

This allows PHP applications to connect to the database through the local Unix socket when available, which is useful for MariaDB/MySQL-compatible local development environments. It also brings PHP 8.4 GD support in line with common image-processing needs by enabling WebP handling.

Testing

Tested by rebuilding the PHP 8.4 container and verifying the updated Docker Compose configuration includes the shared socket mount.

@vatsal-bhakodia vatsal-bhakodia changed the title dd shared database socket support and WebP GD support for PHP 8.4 Add shared database socket support and WebP GD support for PHP 8.4 May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant