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.shExecute with root:
sudo ./deploy.shTo stop the deployment:
sudo ./stop.shYou 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