From bd26ecacf7093f7926d3fd8b370549cb20779380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Thu, 3 Mar 2022 21:23:55 -0500 Subject: [PATCH] Upgrade DDEV configuration --- .ddev/config.yaml | 55 ++++++++++++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/.ddev/config.yaml b/.ddev/config.yaml index 10f9a60..945f342 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -1,29 +1,22 @@ name: agaric-coop -type: drupal8 +type: drupal9 docroot: web php_version: "7.3" webserver_type: nginx-fpm router_http_port: "80" router_https_port: "443" -# xdebug_enabled: true +xdebug_enabled: false additional_hostnames: [] additional_fqdns: [] mariadb_version: "10.2" mysql_version: "" +nfs_mount_enabled: false +mutagen_enabled: false webimage_extra_packages: [rake, sassc] use_dns_when_possible: false composer_version: "2" web_environment: [] - -# This config.yaml was created with ddev version v1.17.1 -# webimage: drud/ddev-webserver:v1.17.1 -# dbimage: drud/ddev-dbserver-mariadb-10.3:v1.17.0 -# dbaimage: phpmyadmin:5 -# However we do not recommend explicitly wiring these images into the -# config.yaml as they may break future versions of ddev. -# You can update this config.yaml using 'ddev config'. - # Key features of ddev's config.yaml: # name: # Name of the project, automatically provides @@ -33,7 +26,7 @@ web_environment: [] # docroot: # Relative path to the directory containing index.php. -# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4" "8.0" +# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1" # You can explicitly specify the webimage, dbimage, dbaimage lines but this # is not recommended, as the images are often closely tied to ddev's' behavior, @@ -57,6 +50,11 @@ web_environment: [] # "ddev xdebug" to enable xdebug and "ddev xdebug off" to disable it work better, # as leaving xdebug enabled all the time is a big performance hit. +# xhprof_enabled: false # Set to true to enable xhprof and "ddev start" or "ddev restart" +# Note that for most people the commands +# "ddev xhprof" to enable xhprof and "ddev xhprof off" to disable it work better, +# as leaving xhprof enabled all the time is a big performance hit. + # webserver_type: nginx-fpm # or apache-fpm # timezone: Europe/Berlin @@ -65,10 +63,10 @@ web_environment: [] # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones # For example Europe/Dublin or MST7MDT -# composer_version: "" -# if composer_version:"" it will use the current ddev default composer release. +# composer_version: "2" +# if composer_version:"2" it will use the most recent composer v2 # It can also be set to "1", to get most recent composer v1 -# or "2" for most recent composer v2. +# or "" for the default v2 created at release time. # It can be set to any existing specific composer version. # After first project 'ddev start' this will not be updated until it changes @@ -85,7 +83,7 @@ web_environment: [] # Please take care with this because it can cause great confusion. # upload_dir: custom/upload/dir -# would set the destination path for ddev import-files to custom/upload/dir. +# would set the destination path for ddev import-files to /custom/upload/dir # working_dir: # web: /var/www/html @@ -98,12 +96,17 @@ web_environment: [] # Currently only these containers are supported. Some containers can also be # omitted globally in the ~/.ddev/global_config.yaml. Note that if you omit # the "db" container, several standard features of ddev that access the -# database container will be unusable. +# database container will be unusable. In the global configuration it is also +# possible to omit ddev-router, but not here. # nfs_mount_enabled: false # Great performance improvement but requires host configuration first. # See https://ddev.readthedocs.io/en/stable/users/performance/#using-nfs-to-mount-the-project-into-the-container +# mutagen_enabled: false +# Experimental performance improvement using mutagen asynchronous updates. +# See https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen + # fail_on_hook_fail: False # Decide whether 'ddev start' should be interrupted by a failing hook @@ -127,10 +130,18 @@ web_environment: [] # phpmyadmin_https_port: "8037" # The PHPMyAdmin ports can be changed from the default 8036 and 8037 +# host_phpmyadmin_port: "8036" +# The phpmyadmin (dba) port is not normally bound on the host at all, instead being routed +# through ddev-router, but it can be specified and bound. + # mailhog_port: "8025" # mailhog_https_port: "8026" # The MailHog ports can be changed from the default 8025 and 8026 +# host_mailhog_port: "8025" +# The mailhog port is not normally bound on the host at all, instead being routed +# through ddev-router, but it can be bound directly to localhost if specified here. + # webimage_extra_packages: [php7.4-tidy, php-bcmath] # Extra Debian packages that are needed in the webimage can be added here @@ -159,7 +170,7 @@ web_environment: [] # In this case the user must provide all such settings. # You can inject environment variables into the web container with: -# web_environment: +# web_environment: # - SOMEENV=somevalue # - SOMEOTHERENV=someothervalue @@ -169,8 +180,12 @@ web_environment: [] # This is to enable experimentation with alternate file mounting strategies. # For advanced users only! -# provider: default # Currently "default", "pantheon", "ddev-live" -# +# bind_all_interfaces: false +# If true, host ports will be bound on all network interfaces, +# not just the localhost interface. This means that ports +# will be available on the local network if the host firewall +# allows it. + # Many ddev commands can be extended to run tasks before or after the # ddev command is executed, for example "post-start", "post-import-db", # "pre-composer", "post-composer"