This project provides a Docker image for spring-boot-admin. It was forked from maniekq/spring-boot-admin-docker to support Spring Boot Admin 2.x.
The Docker image is available as darioseidl/spring-boot-admin-docker.
Run it with the following command (replace YOUR_PASSWORD
):
docker run -d -p 8080:8080 -e SPRING_SECURITY_USER_PASSWORD=YOUR_PASSWORD --name spring-boot-admin darioseidl/spring-boot-admin-docker:2.0.1
The admin UI is then available at http://localhost:8080 (or http://your-docker-ip:8080).
Login with user
and your password.
Build the jar, then the image with the following commands:
./gradlew bootJar
docker build -t spring-boot-admin-docker:2.0.1 docker
Run it with the following command (replace YOUR_PASSWORD
):
docker run -d -p 8080:8080 -e SPRING_SECURITY_USER_PASSWORD=YOUR_PASSWORD --name spring-boot-admin spring-boot-admin-docker:2.0.1
To push it to Docker Hub:
docker tag spring-boot-admin-docker:2.0.1 $DOCKER_ID_USER/spring-boot-admin-docker:2.0.1
docker push $DOCKER_ID_USER/spring-boot-admin-docker:2.0.1
The original blog post can be found here.