-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from wunderio/NEX-155
NEX-155: ddev support
- Loading branch information
Showing
16 changed files
with
348 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: elasticsearch | ||
repository: ddev/ddev-elasticsearch | ||
version: v0.3.2 | ||
install_date: "2024-06-07T20:45:48+03:00" | ||
project_files: | ||
- elasticsearch/ | ||
- docker-compose.elasticsearch.yaml | ||
global_files: [] | ||
removal_actions: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
## Description: Helper script to generate oath keys as part of the next drupal starterkit setup. | ||
## Usage: generate-oauth-keys | ||
## Example: "ddev generate-oauth-keys" | ||
|
||
cd drupal/oauth | ||
pwd | ||
openssl genrsa -out private.key 2048 | ||
openssl rsa -in private.key -pubout > public.key | ||
chmod 600 public.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
## Description: Helper script to install a recipe with ddev. | ||
## Usage: install-recipe <directory name of recipe inside /recipes> | ||
## Example: "ddev install-recipe wunder_next_setup" | ||
|
||
recipe_directory_name="$1" | ||
|
||
if [ $# -eq 0 ]; then | ||
echo "Usage: specify the directory name inside of drupal/recipes/ that you want to install:" | ||
cd drupal/recipes/ | ||
ls -d -- */ | ||
exit 1 | ||
fi | ||
|
||
cd drupal/web | ||
|
||
php core/scripts/drupal recipe ../recipes/"$recipe_directory_name" | ||
|
||
../vendor/bin/drush cr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: next-drupal-starterkit | ||
type: drupal | ||
docroot: drupal/web | ||
composer_root: drupal | ||
nodejs_version: "20" | ||
php_version: "8.2" | ||
webserver_type: nginx-fpm | ||
xdebug_enabled: false | ||
additional_hostnames: [] | ||
additional_fqdns: [] | ||
database: | ||
type: mariadb | ||
version: "10.11" | ||
use_dns_when_possible: true | ||
composer_version: "2" | ||
web_environment: | ||
# This is the secret that is used by the backend to tell the frontend | ||
# to revalidate specific paths. The values need to match both in frontend | ||
# and backend. | ||
- DRUPAL_REVALIDATE_SECRET=revalidate_secret_not_secure_used_only_locally | ||
# This is the secret that is used by the frontend to issue calls to Drupal. | ||
# The values need to match both in frontend and backend. | ||
- DRUPAL_CLIENT_SECRET=drupal_client_secret_not_secure_used_only_locally | ||
# The client id, specified in the consumer on the Drupal side. | ||
- DRUPAL_CLIENT_ID=drupal-client-id | ||
# The client id for the unprivileged user, specified in the consumer on the Drupal side. | ||
- DRUPAL_CLIENT_VIEWER_ID=drupal-client-viewer-id | ||
- DRUPAL_CLIENT_VIEWER_SECRET=drupal_client_viewer_secret_not_secure_used_only_locally | ||
# URL OF THE FRONTEND SITE: | ||
# This needs to match the proxy value for the node service | ||
# so if you change it, remember to change it here as well. | ||
- WUNDER_NEXT_FRONTEND_URL=https://next-drupal-starterkit.ddev.site:3000 | ||
- ENVIRONMENT_NAME=ddev | ||
- HASH_SALT=notsosecurehashnotsosecurehashnotsosecurehash | ||
- NEXT_PUBLIC_DRUPAL_BASE_URL=https://next-drupal-starterkit.ddev.site | ||
- NEXT_IMAGE_DOMAIN=next-drupal-starterkit.ddev.site | ||
- NEXT_PUBLIC_FRONTEND_URL=https://next-drupal-starterkit.ddev.site:3000 | ||
# Environment variables for next_auth: | ||
- NEXTAUTH_SECRET=nextauth_secret_not_secure_used_only_locally | ||
- NEXTAUTH_URL=https://next-drupal-starterkit.ddev.site:3000 | ||
|
||
corepack_enable: false | ||
web_extra_exposed_ports: | ||
- name: "Next.js" | ||
container_port: 3000 | ||
http_port: 2999 | ||
https_port: 3000 | ||
|
||
hooks: | ||
post-start: | ||
- exec: "elasticsearch-plugin install analysis-icu" | ||
service: elasticsearch | ||
- exec: "cd next && npm i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ddev-generated | ||
services: | ||
elasticsearch: | ||
container_name: ddev-${DDEV_SITENAME}-elasticsearch | ||
hostname: ${DDEV_SITENAME}-elasticsearch | ||
image: elasticsearch:7.17.14 | ||
expose: | ||
- "9200" | ||
- "9300" | ||
environment: | ||
- cluster.name=docker-cluster | ||
- discovery.type=single-node | ||
- bootstrap.memory_lock=true | ||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | ||
- VIRTUAL_HOST=$DDEV_HOSTNAME | ||
- HTTP_EXPOSE=9200:9200 | ||
- HTTPS_EXPOSE=9201:9200 | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
volumes: | ||
- elasticsearch:/usr/share/elasticsearch/data | ||
- ".:/mnt/ddev_config" | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl --fail -s elasticsearch:9200"] | ||
|
||
volumes: | ||
elasticsearch: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ddev-generated | ||
services: | ||
elasticsearch: | ||
image: elasticsearch:8.10.2 | ||
volumes: | ||
- ./elasticsearch/config/elasticsearch8.yml:/usr/share/elasticsearch/config/elasticsearch.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ddev-generated | ||
services: | ||
elasticsearch: | ||
environment: | ||
http.cors.enabled: "true" | ||
http.cors.allow-origin: "'*'" | ||
# Disable authentication in local development | ||
xpack.security.enabled: "false" | ||
xpack.security.enrollment.enabled: "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
elasticvue: | ||
image: "cars10/elasticvue:1.0.4" | ||
#command: /docker-entrypoint.sh nginx -g 'daemon off;' | ||
container_name: ddev-${DDEV_SITENAME}-elasticvue | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: ${DDEV_APPROOT} | ||
environment: | ||
- 'ELASTICVUE_CLUSTERS=[{"name": "dev cluster", "uri": "http://${DDEV_SITENAME}.ddev.site:9200/", "password": "", "user": ""}]' | ||
- VIRTUAL_HOST=$DDEV_HOSTNAME | ||
- HTTP_EXPOSE=9003:8080 | ||
web: | ||
links: | ||
- elasticvue:elasticvue | ||
- elasticsearch:elasticsearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ddev-generated | ||
# This file contains the configuration settings for Elasticsearch 8. | ||
# For more information, see https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html | ||
|
||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#cluster-name | ||
cluster.name: "docker-cluster" | ||
|
||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#network.host | ||
network.host: 0.0.0.0 | ||
|
||
# Disable security features | ||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#general-security-settings | ||
xpack.security.enabled: false | ||
xpack.security.autoconfiguration.enabled: false | ||
xpack.security.enrollment.enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ddev-generated | ||
services: | ||
elasticsearch: | ||
image: elasticsearch:8.10.2ss | ||
environment: | ||
ES_JAVA_OPTS: "-Xms512m -Xmx512m" | ||
discovery.type: "single-node" | ||
bootstrap.memory_lock: "true" | ||
http.cors.enabled: "true" | ||
http.cors.allow-origin: "'*'" | ||
# Disable authentication in local development | ||
xpack.security.enabled: "false" | ||
xpack.security.enrollment.enabled: "false" | ||
volumes: | ||
- ./elasticsearch/config/elasticsearch8.yml:/usr/share/elasticsearch/config/elasticsearch.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.