在docker中部署一个由spring boot admin管理的服务集群
Deploying a service cluster managed by spring boot admin in docker
update both application.yml in admin-server and admin-client
spring:
profiles:
active: docker
run
./build-image.sh
to install docker images
run
docker-compose up -d
wait a few seconds , and open your browser , and visit http://localhost:8766
the username is : admin
the password is : adminadmin
you can change it by update application.yml
to stop the docker container , run the following command:
docker-compose down
to remove the docker images , run the following command:
./rm-image.sh
update both application.yml in admin-server and admin-client
spring:
profiles:
active: dev
start admin-eureka first , then admin-server and admin-client
open your browser and visit http://localhost:8766
done.