- firstmicroservice
- firstspringconfigurationserver
- firstSpringeurekaserverDiscovery
- fristSpringCloudGateway
- secondMicroservice
- config-server
- gateway-server
- eureka_server_discovery
- first_microservice
- second_microservice
- keycloak
- dev_vault
- first_microservice_database
- elasticsearch
- kibana
- logstash
- zipkin
- kafka-server
- zookeeper
- redis-server
-
clone projects
git clone https://github.com/zakaria-shahen/firstMicroservicearchitecture cd firstMicroservicearchitecture git clone https://github.com/zakaria-shahen/firstmicroservice git clone https://github.com/zakaria-shahen/firstspringconfigurationserver git clone https://github.com/zakaria-shahen/firstSpringeurekaserverDiscovery git clone https://github.com/zakaria-shahen/fristSpringCloudGateway git clone https://github.com/zakaria-shahen/secondMicroservice -
build images
cd firstmicroservice ./mvnw clean spring-boot:build-image -DskipTests cd ../firstspringconfigurationserver ./mvnw clean spring-boot:build-image -DskipTests cd ../firstSpringEurekaServerDiscovery ./mvnw clean spring-boot:build-image -DskipTests cd ../FristSpringCloudGateway ./mvnw clean spring-boot:build-image -DskipTests cd ../SecondMicroservice ./mvnw clean spring-boot:build-image -DskipTests
-
Run docker-compose
docker-compose up
-
add keycloak to host
- windows
- path:
C:\Windows\System32\drivers\etc - add
127.0.0.1 keycloakto host file
- path:
- windows
-
Vault Config
- run in vault container terminal
vault login token=myroot vault kv put secret/firstmicroservice test.vault="Hello, Vault"
- run in vault container terminal
- keycloak: http://keycloak:8085
- first_microservice: http://localhost:8080
- second_microservice: http://localhost:8081
- zipkin: http://localhost:9411
- elasticsearch: http://localhost:9200
NOTE: not use IDEA to run config server with vault ref but use cli with spring-boot:run
./mvnw spring-boot:run```shell
./mvnw install spring-boot:repackage -DskipTests &&
docker-compose up --build --no-deps --force-recreate -Vd --no-log-prefix <service_name>
```
Add New Run Configuration:
