diff --git a/generators/heroku/templates/application-heroku.yml.ejs b/generators/heroku/templates/application-heroku.yml.ejs index 40394214ea83..4cf6cf985958 100644 --- a/generators/heroku/templates/application-heroku.yml.ejs +++ b/generators/heroku/templates/application-heroku.yml.ejs @@ -51,14 +51,13 @@ spring: hikari: maximumPoolSize: 8 <%_ } _%> -<%_ if (prodDatabaseType === 'mongodb' || searchEngine === 'elasticsearch') { _%> +<%_ if (prodDatabaseType === 'mongodb') { _%> data: - <%_ if (prodDatabaseType === 'mongodb') { _%> mongodb: uri: ${MONGODB_URI}?authMode=scram-sha1 - <%_ } _%> - <%_ if (searchEngine === 'elasticsearch') { _%> - jest: - uri: ${BONSAI_URL} - <%_ } _%> +<%_ } _%> +<%_ if (searchEngine === 'elasticsearch') { _%> + elasticsearch: + rest: + uris: ${BONSAI_URL} <%_ } _%> diff --git a/generators/kubernetes-knative/templates/service.yml.ejs b/generators/kubernetes-knative/templates/service.yml.ejs index afe6c2d01bdc..ba0fea14b356 100644 --- a/generators/kubernetes-knative/templates/service.yml.ejs +++ b/generators/kubernetes-knative/templates/service.yml.ejs @@ -118,8 +118,6 @@ spec: value: <%= app.baseName.toLowerCase() %> <%_ } _%> <%_ if (app.searchEngine === 'elasticsearch') { _%> - - name: SPRING_DATA_JEST_URI - value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200 - name: SPRING_ELASTICSEARCH_REST_URIS value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200 <%_ } _%> diff --git a/generators/kubernetes/templates/deployment.yml.ejs b/generators/kubernetes/templates/deployment.yml.ejs index c830e28bcd4f..2ed05657f7c1 100644 --- a/generators/kubernetes/templates/deployment.yml.ejs +++ b/generators/kubernetes/templates/deployment.yml.ejs @@ -155,8 +155,6 @@ spec: value: <%= app.baseName.toLowerCase() %> <%_ } _%> <%_ if (app.searchEngine === 'elasticsearch') { _%> - - name: SPRING_DATA_JEST_URI - value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200 - name: SPRING_ELASTICSEARCH_REST_URIS value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200 <%_ } _%> diff --git a/generators/openshift/templates/deployment.yml.ejs b/generators/openshift/templates/deployment.yml.ejs index 6197963c59bc..e72dd393331f 100644 --- a/generators/openshift/templates/deployment.yml.ejs +++ b/generators/openshift/templates/deployment.yml.ejs @@ -205,8 +205,6 @@ objects: value: ${APPLICATION_NAME} <%_ } _%> <%_ if (app.searchEngine === 'elasticsearch') { _%> - - name: SPRING_DATA_JEST_URI - value: http://${APPLICATION_NAME}-elasticsearch:9200 - name: SPRING_ELASTICSEARCH_REST_URIS value: http://${APPLICATION_NAME}-elasticsearch:9200 <%_ } _%> diff --git a/generators/server/templates/src/main/docker/app.yml.ejs b/generators/server/templates/src/main/docker/app.yml.ejs index e6496b1f5740..b199811f24d4 100644 --- a/generators/server/templates/src/main/docker/app.yml.ejs +++ b/generators/server/templates/src/main/docker/app.yml.ejs @@ -78,7 +78,6 @@ services: - JHIPSTER_SLEEP=30 # gives time for other services to boot before the application <%_ } _%> <%_ if (searchEngine === 'elasticsearch') { _%> - - SPRING_DATA_JEST_URI=http://<%= baseName.toLowerCase() %>-elasticsearch:9200 - SPRING_ELASTICSEARCH_REST_URIS=http://<%= baseName.toLowerCase() %>-elasticsearch:9200 <%_ } _%> <%_ if (messageBroker === 'kafka') { _%> diff --git a/test/templates/compose/03-psql/src/main/docker/app.yml b/test/templates/compose/03-psql/src/main/docker/app.yml index eaf701cb22b3..dee682b93847 100644 --- a/test/templates/compose/03-psql/src/main/docker/app.yml +++ b/test/templates/compose/03-psql/src/main/docker/app.yml @@ -6,7 +6,6 @@ services: - SPRING_PROFILES_ACTIVE=prod - SPRING_CLOUD_CONFIG_URI=http://admin:admin@jhipster-registry:8761/config - SPRING_DATASOURCE_URL=jdbc:postgresql://mspsql-postgresql:5432/mspsql - - SPRING_DATA_JEST_URI=http://mspsql-elasticsearch:9200 - SPRING_ELASTICSEARCH_REST_URIS=http://mspsql-elasticsearch:9200 mspsql-postgresql: extends: