🇬🇧 Configure apache solr with DDEV
in / Technology and Innovation on Apache solr Last modified at:

✅ Apache Solr with DDEV – Full Setup Script
⚙️ 1. Create and configure a DDEV project
mkdir ~/Projects/apachesolr-example
cd ~/Projects/apachesolr-example
ddev config --project-type=generic --docroot=. --project-name=apachesolr-example
📦 2. Install the Solr add-on
ddev add-on get ddev/ddev-solr
🔁 3. Fix credential helpers (for macOS Apple Silicon)
If needed (common issue), run:
sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker-credential-desktop /opt/homebrew/bin/docker-credential-desktop
sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain /opt/homebrew/bin/docker-credential-osxkeychain
Then verify
docker-credential-desktop version
docker-credential-osxkeychain version
🚀 4. Start the project
ddev restart
Wait for all containers to be ready. This will start:
- Solr at http://apachesolr-example.ddev.site:8983
- Web container (not used here)
🔐 5. Login to Solr Admin
Open:
http://apachesolr-example.ddev.site:8983
Login with:
- Username: solr
- Password: SolrRocks
📁 6. Create a Solr Core (named techproducts, or any name)
ddev ssh -s solr
solr create_core -c techproducts
exit
✅ Done!
Now go to:
http://apachesolr-example.ddev.site:8983/solr/#/techproducts
You’ll see the admin UI for your new core.
Author by Eduardo Telaya.