This is a Spring MVC project packaged and deployed as a Docker microservice. Transactions are persisted to an H2 database and retrieved via web interface.
-
Microservice deployed as a docker container with an inbuilt health check end point for runtime monitoring and management.
-
H2 in-memory database is initialised with transactions on start up and admin console is accessible.
To build (package) the docker image
$ ./mvnw clean package docker:build
To run the Docker container (Ctrl+C to remove container)
$ docker run -it --rm -p 8080:8080 --name account-list account-list
To check container status
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fbd9c786ed5e account-list "java -jar /app/acco…" 53 seconds ago Up 51 seconds (healthy) 0.0.0.0:8080->8080/tcp account-list