Additional Service Configurations for ddev

ddev projects can be extended to provide additional services. This is achieved by adding docker-compose files to a project's .ddev directory that defines the added service(s). This page provides configurations for services that are ready to be added to your project with minimal setup.

If you need a service not provided here, see Defining an additional service with Docker Compose

Apache Solr

This recipe adds an Apache Solr 5.4 container to a project. It will setup a solr core with the solr configuration you define.

Installation: - Copy docker-compose.solr.yaml to the .ddev folder for your project. - Create the folder path .ddev/solr/conf. - Copy the solr configuration files for your project to .ddev/solr/conf. e.g., using Drupal Search API Solr, you would copy the solr-conf/5.x/ contents from the module code base into .ddev/solr/conf. - Ensure the configuration files must be present before running ddev start.

Interacting with Apache Solr - The Solr admin interface will be accessible at http://<projectname>.ddev.local:8983/solr/ - To access the Solr container from the web container use http://solr:8983/solr/ - The Solr core will be "dev"


This recipe adds a Memcached 1.5 container to a project. The default configuration allocates 128 MB of RAM for the Memcached instance; to change that or other command line arguments, edit the command array within the docker-compose file.

Installation: - Copy docker-compose.memcached.yaml to the .ddev folder for your project. - Run ddev start.

Interacting with Memcached - The Memcached instance will listen on TCP port 11211 (the Memcached default). - Configure your application to access Memcached on the host:port memcached:11211. - To reach the Memcached admin interface, run ddev ssh to connect to the web container, then use nc or telnet to connect to the Memcached container on port 11211, i.e. nc memcached 11211. You can then run commands such as stats to see usage information.