Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elastic Cloud example with Spring Boot

Build Status codecov

Example of how connect elastic cloud with SpringData

Execute it using bootrun

Set environment variables

  • ELASTICSEARCH_CLOUD_CREDENTIALS = user:password
  • ELASTICSEARCH_CLOUD_HOST = your cluster elastic.co host name
  • ELASTICSEARCH_CLOUD_PORT = 9343

Run bootRun

./gradlew bootRun

Execute it using Docker

Build image

./gradlew -x test buildMyAppImage

Run image

    -p 8080:8080 \
    -e ELASTICSEARCH_CLOUD_CREDENTIALS='elastic:password' \
    -e ELASTICSEARCH_CLOUD_HOST='your host' \
    -e ELASTICSEARCH_CLOUD_PORT=9343 \
    elastic-example-springboot```



About

Springboot+Elastic Example

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages