Run the command below in user service and engagement service
./mvnw clean package Run the command below in content service
./mvnw clean compile package -DskipTestsRun docker compose and build with images if run time running
docker compose up --build else remove --build
- Access keycloak admin console at localhost:8080 and input admin credential as configured in .env file
- Create new realms (e.g. mlog)
- Create new client in realm (e.g. mlog-frontend)
- Enable user registration in Configure/Realm settings/Login/User registration
- Access apisix admin console at localhost:9000 and input admin credential
- Go to route list, create route to service, list of service is below
- Enable cors plugin across the gateway with the plugin tab
- Enable openid-connect plugin with json value of:
{
"client_id": "dummy-public-client",
"client_secret": "dummy-secret-not-used",
"discovery": "http://keycloak:8080/realms/{realm_name}/.well-known/openid-configuration",
"bearer_only": true,
"use_jwks": true,
"token_signing_alg_values_expected": "RS256"
}- user_service:8080
- content_service:8081
- engagement_service:8080