Skip to content

Latest commit

 

History

History
 
 

elasticsearch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Elasticsearch

Using official Elasticsearch container elasticsearch.

Installation

Copy docker-compose.elasticsearch.yaml to your project's .ddev folder.

Configuration

From within the container, the elasticsearch container is reached at hostname: ddev--elasticsearch, port: 9200, so the server URL might be http://ddev-<projectname>-elasticsearch:9200. You can also use the non-SSL, and SSL urls to access it: http://<projectname>.ddev.site:9200, and https://<projectname>.ddev.site:9201

Connection

You can access the Elasticsearch server directly from the host for debugging purposes by visiting http://<projectname>.ddev.site:9200. If you have SSL enabled, which is recommended, you can access Elasticsearch via https://<projectname>.ddev.site:9201

Memory Limit

This configuration limits memory usage to 512mb. This should be enough for most projects, but if your elasticsearch service stops with no obvious reason, increase your docker max memory or/and the service max memory.

You can use ddev logs -s elasticsearch to investigate what the elasticsearch daemon has been up to, or if you have a RAM-related crash.

Additional Resources