All Projects → slydeveloper → spring-boot-admin-docker

slydeveloper / spring-boot-admin-docker

Licence: other
🐳 Yet another implementation of Docker image with the Spring Boot Admin

Programming Languages

java
68154 projects - #9 most used programming language
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to spring-boot-admin-docker

tictactoe-microservices-example
An example of Spring Cloud Microservices application based on books (see Links section)
Stars: ✭ 23 (+43.75%)
Mutual labels:  spring-boot-admin
Spring Boot Cloud
基于 Spring Boot、Spring Cloud、Spring Oauth2 和 Spring Cloud Netflix 等框架构建的微服务项目
Stars: ✭ 2,044 (+12675%)
Mutual labels:  spring-boot-admin
Spring Boot Admin
Admin UI for administration of spring boot applications
Stars: ✭ 10,415 (+64993.75%)
Mutual labels:  spring-boot-admin
FEBS-Actuator
使用Spring Boot Admin 2.0.2构建的服务端,用于监控FEBS。
Stars: ✭ 35 (+118.75%)
Mutual labels:  spring-boot-admin
spring-cloud-examples
🎏 Personal learning use cases.
Stars: ✭ 33 (+106.25%)
Mutual labels:  spring-boot-admin
spring-petclinic-microservices
Distributed version of Spring Petclinic built with Spring Cloud
Stars: ✭ 55 (+243.75%)
Mutual labels:  spring-boot-admin

Spring Boot Admin

Yet another implementation of containerized spring-boot-admin

Info

  • Name: slydeveloper/spring-boot-admin
  • Version: latest,1.3,1.2,1.1,1.0
  • Docker Hub

Details

  • Image based on java:8-jre-alpine
  • Spring Boot Admin version: 2.6.1
  • Spring Boot version: 2.6.2
  • Default port: 1111
  • Default user: admin
  • Default password: secret
  • URL: http://localhost:1111
  • Health check URL - http://localhost:1111/health

Usage

docker run -d -p 1111:1111 --name spring-boot-admin slydeveloper/spring-boot-admin:latest

Configuration via environment variables

  • SPRING_BOOT_ADMIN_USER_NAME=user
    • set username: user
  • SPRING_BOOT_ADMIN_USER_PASSWORD=password
    • set password: password
  • SPRING_BOOT_ADMIN_TITLE=test
    • set Page-Title: test
  • SPRING_BOOT_ADMIN_SECURITY_ENABLED=false
    • disable login form (default : true)
Examples
  • docker run -d -p 1111:1111 -e SPRING_BOOT_ADMIN_TITLE='SB Admin' -e SPRING_BOOT_ADMIN_SECURITY_ENABLED=false --name spring-boot-admin slydeveloper/spring-boot-admin:latest
  • docker run -d -p 1111:1111 -e SPRING_BOOT_ADMIN_USER_NAME=user -e SPRING_BOOT_ADMIN_USER_PASSWORD='password' --name spring-boot-admin slydeveloper/spring-boot-admin:latest

Configuration via properties file

A container supports configuration via *.properties file, just like regular Spring Boot application. Please note that environment variables will be override by properties file. Properties of Spring Boot Admin: http://codecentric.github.io/spring-boot-admin/2.1.6/#spring-boot-admin-server

Example application-docker.properties file:

# Spring Boot server port
server.port=2222

# Spring Boot Admin user/uassword
spring.security.user.name=user
spring.security.user.password=password

# Spring Boot Admin title
spring.boot.admin.ui.title=Custom title

# custom property for disable security
spring.boot.admin.security.enabled=false

Example command:

  • docker run -d -p 2222:2222 -v "$(pwd)"/application-docker.properties:/opt/spring-boot-admin-docker/application-docker.properties --name spring-boot-admin slydeveloper/spring-boot-admin:latest

Docker-Compose example

Health check usage of slydeveloper/spring-boot-admin with Docker-Compose. Full working Spring Boot Admin client here.

version: '2.1'

services:
  example:
    image: <SOME_SPRING_BOOT_ADMIN_CLIENT_IMAGE>
    ports:
      - 8080:8080
    depends_on:
        admin:
          condition: service_healthy
    container_name: spring_boot_admin_example
  admin:
    image: slydeveloper/spring-boot-admin
    environment:
      - SPRING_BOOT_ADMIN_TITLE=Custom Spring Boot Admin title
    volumes:
      - ./application-docker.properties:/opt/spring-boot-admin-docker/application-docker.properties
    ports:
      - 1111:1111
    healthcheck:
      test: "curl -sS http://localhost:1111/health"
      interval: 1s
      timeout: 60s
      retries: 120
    container_name: spring_boot_admin_docker

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].