Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.02 KB

File metadata and controls

32 lines (22 loc) · 1.02 KB

Spring API

The ultimate template for starting a Java API with Spring

This is an API with the purpose of be a template for microservice based projects that uses Spring Boot 3, Swagger/OpenAPI 3, Logstash, Consul as a service discovery and Keycloak as authentication platform. Will add elasticsearch and PostgreSQL in the future in order to use PostgreSQL, Elasticsearch and MongoDB.

How to deploy with Docker Compose: Chmod in order to add execution permissions:

chmod +x ./deploy.sh && chmod +x ./stop.sh

Execute with root:

sudo ./deploy.sh

To stop the deployment:

sudo ./stop.sh

You can deploy your own Keycloak instance with Docker using this guide: https://www.keycloak.org/getting-started/getting-started-docker

This API is intended to be used with the ELK Stack in order to centralize logs, so you will need to deploy it also. If not, you must update the code: delete logback.xml from resources and logstash dependency from pom.xml.

Docker ELK: https://github.com/deviantony/docker-elk