Giter VIP home page Giter VIP logo

spring-boot-multitenancy's Introduction

Spring Boot Multitenancy

Stack

  • Java 21
  • Spring Boot 3.2
  • Grafana OSS

Usage

You can use Docker Compose to run the necessary backing services for observability, authentication, and AI.

From the project root folder, run Docker Compose.

docker-compose up -d

The Instrument Service application can be run as follows to rely on Testcontainers to spin up a PostgreSQL database:

./gradlew bootTestRun

The Edge Service application can be run as follows:

./gradlew bootRun

The Chat Service application can be run using one of the two techniques described above. If you don't want to rely on Testcontainers, make sure you have Ollama installed and the Llama2 model available (ollama run llama2).

Two tenants are configured: dukes and beans. Ensure you add the following configuration to your hosts file to resolve tenants from DNS names.

127.0.0.1       dukes.rock
127.0.0.1       beans.rock

Now open the browser window and navigate to http://dukes.rock/instruments/. You'll be redirected to the Keycloak authentication page. Log in with isabelle/password. The result will be the list of instruments from the Dukes rock band.

Now open another browser window and navigate to http://beans.rock/instruments/. You'll be redirected to the Keycloak authentication page. Log in with bjorn/password. The result will be the list of instruments from the Beans rock band.

spring-boot-multitenancy's People

Contributors

thomasvitale avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.