Enable and configure PHP Community
Enable and configure PHP Community
PHP Community replaces the default Devilbox PHP-FPM image with a community
flavour while keeping the same php service, mounts, and network identity.
How it works
Devilbox keeps optional integrations as override snippets in the compose/
directory. To enable PHP Community, copy its snippet into the project root as
docker-compose.override.yml, then start the stack.
Enable
cp compose/docker-compose.override.yml-php-community docker-compose.override.yml./dvl.sh upConfiguration
The snippet overrides the existing php service image:
image: devilbox/php-fpm-community:${PHP_SERVER}-${PHP_COMMUNITY_FLAVOUR:-devilbox}It uses the same service name, hostname, ports, volumes, and IP address as the standard PHP service. Configure it with existing PHP settings plus:
| Variable | Default | Purpose |
|---|---|---|
PHP_SERVER | from your .env | PHP version tag used by the PHP service. |
PHP_COMMUNITY_FLAVOUR | devilbox | Community image flavour suffix. |
Example .env entries:
PHP_SERVER=8.3PHP_COMMUNITY_FLAVOUR=devilboxUsage
Start the stack and confirm the PHP image:
./dvl.sh updocker compose ps phpCheck the active PHP version from inside the container:
./dvl.sh exec php -vUse the same project workflow as the standard PHP container:
./dvl.sh shellcomposer installDisable
./dvl.sh downrm docker-compose.override.yml./dvl.sh upTroubleshooting
- If Docker cannot pull the image, verify the combination of
PHP_SERVERandPHP_COMMUNITY_FLAVOURexists. - If PHP still uses the old image, recreate the service with
./dvl.sh downbefore starting it again. - If extensions differ from the standard image, review
PHP_MODULES_ENABLEandPHP_MODULES_DISABLEin.env.