diff --git a/packages/env/lib/build-docker-compose-config.js b/packages/env/lib/build-docker-compose-config.js index e5ab685f4b1478..dc2c43794eb311 100644 --- a/packages/env/lib/build-docker-compose-config.js +++ b/packages/env/lib/build-docker-compose-config.js @@ -149,11 +149,24 @@ module.exports = function buildDockerComposeConfig( config ) { image: 'composer', volumes: [ `${ config.configDirectoryPath }:/app` ], }, + phpunit: { + image: 'wordpressdevelop/phpunit', + init: true, + depends_on: [ 'mysql' ], + volumes: [ + ...developmentMounts, + 'phpunit-uploads:/var/www/html/wp-content/uploads', + ], + environment: { + LOCAL_DIR: 'html', + }, + }, }, volumes: { ...( ! config.coreSource && { wordpress: {} } ), ...( ! config.coreSource && { 'tests-wordpress': {} } ), mysql: {}, + 'phpunit-uploads': {}, }, }; };