Run with Eureka server/registry
-
Spring boot admin will be the client of eureka-server
-
Eureka-server will be the client of spring boot admin server
URL : [http://localhost:7216](http://localhost:7216)
Username: thirumal
Password: thirumal
management.endpoints.web.exposure.include=*
management.endpoint.shutdown.enabled=true
management.endpoints.beans.sensitive=false
eureka:
instance:
appname: indsolv-cloud-config-server
leaseRenewalIntervalInSeconds: 10
preferIpAddress: true
health-check-url-path: /actuator/health
metadata-map:
startup: ${random.int} #needed to trigger info and endpoint update after restart
user:
name: "thirumal"
password: "thirumal"
client:
region: default
enabled: true
register-with-eureka: true
registryFetchIntervalSeconds: 5
fetch-registry: true
service-url:
defaultZone: http://thirumal:thirumal@localhost:8761/eureka/
./spring-boot-admin-server.sh
-
Create docker layered image using the following command
mvn package chmod -R 777 target/ mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar) chmod -R 777 target/ docker build -t spring-boot-admin-server .
-
Run the image
docker run --name spring-boot-admin-server --restart always -d -p 7126:7126 spring-boot-admin-server
- Run image with local log driver
docker run --name spring-boot-admin-server --restart always --log-driver local --log-opt max-size=10m --log-opt max-file=3 --log-opt compress=true -d -p 7126:7126 spring-boot-admin-server
- Run image without log driver
docker run --name spring-boot-admin-server --restart always --log-driver none -d -p 7126:7126 spring-boot-admin-server