-
Start Consul
docker run -d --name consul -e CONSUL_BIND_INTERFACE=eth0 -p 8300-8302:8300-8302 -p 8600:8600 -p 8500:8500 --network bridge --add-host=dockerhost:$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}') consul
-
Create common configurations in Consul
echo -n 'common-property-value' | http PUT localhost:8500/v1/kv/config/address-service/common/property echo -n 'common-property-value' | http PUT localhost:8500/v1/kv/config/person-service/common/property echo -n 'common-property-value' | http PUT localhost:8500/v1/kv/config/api-gateway-service/common/property
-
Start Gateway
cd ./spring-cloud-gateway mvnw clean spring-boot:run
-
Start Person service
cd ./person-service mvnw clean spring-boot:run
-
Start Address service
cd ./address-service mvnw clean spring-boot:run
-
Notifications
You must be signed in to change notification settings - Fork 0
Sample project using Consul and Spring Cloud Gateway
License
bygui86/admin-consul-gateway
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sample project using Consul and Spring Cloud Gateway
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published