2019-08-05 09:09:14 +02:00
|
|
|
##
|
|
|
|
# Default configuration options for the local dev environment.
|
|
|
|
#
|
2019-12-30 14:46:17 +01:00
|
|
|
# All of these options can be overridden by setting them as environment variables before starting
|
2019-08-05 09:09:14 +02:00
|
|
|
# the environment. You will need to restart your environment when changing any of these.
|
2020-10-29 00:15:07 +01:00
|
|
|
#
|
|
|
|
# Below, the following substitutions can be made:
|
|
|
|
# - '{version}': any major.minor PHP version from 5.2 onwards.
|
|
|
|
# - '{phpunit_version}': any major PHPUnit version starting with 4.
|
2019-08-05 09:09:14 +02:00
|
|
|
##
|
|
|
|
|
|
|
|
# The site will be available at http://localhost:LOCAL_PORT
|
|
|
|
LOCAL_PORT=8889
|
|
|
|
|
|
|
|
# Where to run WordPress from. Valid options are 'src' and 'build'.
|
|
|
|
LOCAL_DIR=src
|
|
|
|
|
2020-10-29 00:15:07 +01:00
|
|
|
# The PHP version to use. Valid options are 'latest', and '{version}-fpm'.
|
2019-08-05 09:09:14 +02:00
|
|
|
LOCAL_PHP=latest
|
|
|
|
|
2020-10-29 00:15:07 +01:00
|
|
|
##
|
|
|
|
# The PHPUnit version to use when running tests.
|
|
|
|
#
|
|
|
|
# Support for new PHPUnit versions is not backported to past versions, so some old WordPress branches require an older
|
|
|
|
# version to run tests.
|
|
|
|
#
|
|
|
|
# Valid versions are:
|
|
|
|
# - 'latest' for the highest version of PHPUnit supported on the highest version of PHP supported.
|
|
|
|
# - '{version}-fpm' for the highest version of PHPUnit supported on the specified version of PHP.
|
|
|
|
# - '{phpunit_version}-php-{version}-fpm' for a specific version of PHPUnit on the specified version of PHP. This format
|
|
|
|
# is only available for PHP versions 5.6 and higher.
|
|
|
|
#
|
|
|
|
# For the full list of available options, see https://hub.docker.com/r/wordpressdevelop/phpunit/tags.
|
|
|
|
#
|
|
|
|
# For full documentation on PHPUnit compatibility and WordPress versions, see
|
|
|
|
# https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/.
|
|
|
|
#
|
|
|
|
# This defaults to the value assigned to the value of LOCAL_PHP.
|
|
|
|
##
|
|
|
|
LOCAL_PHPUNIT=${LOCAL_PHP}
|
|
|
|
|
2019-08-05 09:09:14 +02:00
|
|
|
# Whether or not to enable XDebug.
|
|
|
|
LOCAL_PHP_XDEBUG=false
|
|
|
|
|
2019-08-07 13:54:22 +02:00
|
|
|
# Whether or not to enable Memcached.
|
|
|
|
LOCAL_PHP_MEMCACHED=false
|
|
|
|
|
2019-08-05 09:09:14 +02:00
|
|
|
# The MySQL version to use. See https://hub.docker.com/_/mysql/ for valid versions.
|
|
|
|
LOCAL_MYSQL=5.7
|
|
|
|
|
|
|
|
# The debug settings to add to `wp-config.php`.
|
|
|
|
LOCAL_WP_DEBUG=true
|
|
|
|
LOCAL_WP_DEBUG_LOG=true
|
|
|
|
LOCAL_WP_DEBUG_DISPLAY=true
|
|
|
|
LOCAL_SCRIPT_DEBUG=true
|
2020-10-10 22:13:11 +02:00
|
|
|
LOCAL_WP_ENVIRONMENT_TYPE=local
|
2019-08-12 10:28:33 +02:00
|
|
|
|
|
|
|
# The URL to use when running e2e tests.
|
|
|
|
WP_BASE_URL=http://localhost:${LOCAL_PORT}
|