Skip to content

Instantly share code, notes, and snippets.

@gilbertsoft
Last active December 11, 2019 20:48
Show Gist options
  • Save gilbertsoft/3551d69d449ecb73c4921c5ffe53bc58 to your computer and use it in GitHub Desktop.
Save gilbertsoft/3551d69d449ecb73c4921c5ffe53bc58 to your computer and use it in GitHub Desktop.
Install TYPO3 Introduction with Apache Solr
#!/bin/bash
ddev config --create-docroot --docroot=public --project-type=typo3
cat << EOF > .ddev/docker-compose.environment.yaml
version: '3.6'
services:
web:
environment:
- TYPO3_CONTEXT=Development
- TYPO3_INSTALL_ADMIN_USER=admin
- TYPO3_INSTALL_ADMIN_PASSWORD=password
- TYPO3_INSTALL_SITE_NAME=TYPO3 Apache Solr
EOF
ddev start
ddev composer require --sort-packages --optimize-autoloader typo3/minimal:^9.5 typo3-console/composer-auto-commands:* apache-solr-for-typo3/solr:* typo3/cms-introduction:*
curl -L -o .ddev/docker-compose.solr.yaml https://github.com/drud/ddev-contrib/raw/25b4700a93da3edd00ecfaedadba6e75a2b0de43/docker-compose-services/typo3-solr/docker-compose.solr.yaml
mkdir -p .ddev/solr
cp -r public/typo3conf/ext/solr/Resources/Private/Solr/* .ddev/solr
ddev restart
ddev exec vendor/bin/typo3cms install:setup --no-interaction
ddev launch typo3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment