|
1 | | -[](https://github.com/drud/ddev-drupal9-solr/actions/workflows/tests.yml) |
| 1 | +[](https://github.com/drud/ddev-memcached/actions/workflows/tests.yml) |
2 | 2 |
|
3 | 3 | ## What is this? |
4 | 4 |
|
5 | | -This repository allows you to quickly install Apache Solr for Drupal 9 into a [Ddev](https://ddev.readthedocs.io) project using just `ddev service get drud/ddev-drupal9-solr`. |
| 5 | +This repository allows you to quickly install memcached into a [Ddev](https://ddev.readthedocs.io) project using just `ddev service get drud/ddev-memcached`. |
6 | 6 |
|
7 | | -## Installation on Drupal 9 |
| 7 | +## Installation |
8 | 8 |
|
9 | | -1.`ddev service get drud/ddev-drupal9-solr && ddev restart` |
10 | | -2. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush:* drupal/search_api_solr` |
11 | | -3. Enable the Search API Solr Search Defaults module: `ddev drush en -y search_api_solr_defaults`. (If it can't be enabled due to the "article" content type not existing, you can just create a search_api_solr server manually.) |
12 | | -4. Edit the enabled search_api server named `default_solr_server` at `admin/config/search/search-api/server/default_solr_server/edit` |
13 | | - * set "Solr host" to `solr` |
14 | | - * set "Solr core" name to "dev" |
15 | | - * Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr` |
| 9 | +1.`ddev service get drud/ddev-memcached && ddev restart` |
16 | 10 | 5. `ddev restart` |
17 | 11 |
|
18 | 12 | ## Explanation |
19 | 13 |
|
20 | | -This is the classic Drupal solr 8 recipe used for a long time by Drupal users and compatible with search_api_solr. |
| 14 | +This memcached recipe for [ddev](https://ddev.readthedocs.io) installs a [`.ddev/docker-compose.memcached.yaml`](docker-compose.memcached.yaml) using the memcached:1.5 docker image. |
21 | 15 |
|
22 | | -* It installs a [`.ddev/docker-compose.solr.yaml`](docker-compose.solr.yaml) using the solr:8 docker image |
23 | | -* A standard Drupal 9 solr configuration is included in [.ddev/solr/conf](.ddev/solr/conf) |
24 | | -* A [.ddev/docker-entrypoint-initdb.d/solr-configupdate.sh](solr/docker-entrypoint-initdb.d/solr-configupdate.sh) is included and mounted into the solr container so that you can change solr config in .ddev/solr/conf with just a `ddev restart`. |
| 16 | +## Interacting with Memcached |
25 | 17 |
|
26 | | -## Interacting with Apache Solr |
27 | | - |
28 | | -* The Solr admin interface will be accessible at: `http://<projectname>.ddev.site:8983/solr/` For example, if the project is named `myproject` the hostname will be: `http://myproject.ddev.site:8983/solr/`. |
29 | | -* To access the Solr container from inside the web container use: `http://solr:8983/solr/` |
30 | | -* A Solr core is automatically created by default with the name "dev"; it can be accessed (from inside the web container) at the URL: `http://solr:8983/solr/dev` or from the host at `http://<projectname>.ddev.site:8983/solr/#/~cores/dev`. You can obviously create other cores to meet your needs. |
31 | | - |
32 | | -## Caveats |
33 | | -* This recipe won't work with versions of solr before solr:8, and Acquia and Pantheon.io hosting require versions from 3 to 7. You'll want to see the [contributed recipes](https://github.com/drud/ddev-contrib) for older versions of solr. |
| 18 | +* The Memcached instance will listen on TCP port 11211 (the Memcached default). |
| 19 | +* Configure your application to access Memcached on the host:port `memcached:11211`. |
| 20 | +* 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. |
0 commit comments