Create Docker Swarm and install services to Docker swarm using docker stack deploy Introduction Setting up of cluster node topology and managing nodes have always been a pain for any developer or infrastructure engineers. Docker swarm makes it ridiculously easy to create a node cluster topology and get a service up and running in a […]
Month: May 2023
How to install Nginx as a reverse proxy server with Docker
How to install Nginx as a reverse proxy server with Docker Introduction On a single docker host machine, we can run 100’s of containers and each container can be accessed by exposing a port on the host machine and binding it to the docker port. This is the most standard practice which is used and […]
How to convert JSON schema to Java classes using maven plugin
Convert JSON schema to Java classes using maven plugin Introduction We often need to convert JSON schema’s to Java classes, there is a jsonschema2pojo-maven-plugin which helps in generating POJO(plain old java objects) from JSON or JSON schema. To use it all we need is add this plugin, update dependencies and run mvn generate Add jsonschema2pojo-maven-plugin […]
How to create docker image of Standalone Spring MVC project
How to create docker image of spring MVC project Introduction There is a lot of documentation available on running a spring boot as a docker container and it is quite easy to achieve too. Follow my tutorial which lists step by step guide on creating a spring boot docker image. Well, when it comes to […]
How to view docker container logs
How to see docker container logs Introduction If you are running your container in -d (detached mode) or by docker remote API, you will not see any logs in console. To access running docker image or container logs you need to use docker logs command. In this tutorial, I will list out various commands to […]