docker network create sep-bridge-network
docker compose -f docker-compose-mysql.yaml up -d
docker compose -f docker-compose-mongo.yaml up -d
docker compose -f docker-compose-redis.yaml up -d
docker compose -f docker-compose-elk.yaml up -d
docker compose -f docker-compose-kafka.yaml up -d
docker compose -f docker-compose-keycloak.yaml up -d
- Create
sep
realm
- Copy realm public key
Realm settings > Keys > RS256 > Public key
- Create Keycloak clients for services
- Repeat these for all clients
- While creating enable service accounts roles
- While creating enable client authentication
- Copy client secret
Clients > Client details > Credentials > Client Secret
- Create client:
sep-product-service
- Create client:
sep-payment-service
- Create client:
sep-search-service
- Create client:
sep-aggregator-service
- Go to
Client Scopes > roles > Mappers > create
- Name: "roles"
- Mapper Type: "User Client Role"
- Multivalued: True
- Token Claim Name: "roles"
- Add to access token: True
curl -X POST https://<KEYCLOAK_SERVER>/realms/sep/protocol/openid-connect/token -H "Content-Type: application/x-www-form-urlencoded" -d "client_id=sep-product-service&client_secret=<CLIENT_SECRET>&grant_type=client_credentials"
docker compose -f ./sep-discovery-service/docker-compose.yaml up -d --remove-orphans
docker compose -f ./sep-config-service/docker-compose.yaml up -d --remove-orphans
docker compose -f ./sep-gateway-service/docker-compose.yaml up -d --remove-orphans
docker compose -f ./sep-product-service/docker-compose.yaml up -d --remove-orphans
docker compose -f ./sep-payment-service/docker-compose.yaml up -d --remove-orphans
docker compose -f ./sep-search-service/docker-compose.yaml up -d --remove-orphans
docker compose -f ./sep-aggregator-service/docker-compose.yaml up -d --remove-orphans