Introduction

Finally the second part of an amazing article where we put all the puzzles together. We are going to make sure by the end of this article, all you see in the image above is running locally on your computer. We will start by changing the property file of Customer service to utilize the Postgresql database. Then customize logs and where to be stored. Then containerize ZUUL, EUREKA, and Customer service. Then run them in a docker-compose network. And finally, scale up the Customer service container instance.

Prerequisite

Please go through part 1(link below) of this article to fully understand.

Customer Service Changing from H2 database to Postgresql Database

The…


Please look at the overview image of what we are going to accomplish today

Introduction

An amazing, amazing article this is. The power of having different docker image containers talk to each other in a seamless way is amazing. In this article, that’s exactly what we’ll be doing. We going to access a scaled-up CRUD(create, read, update and delete) REST API microservice via an API gateway and store its data on a PostgreSQL database server. We will have 4 docker images at the end of this article. One for PostgreSQL, one for REST API microservice, one for EUREKA to enable round-robin load-balancing, and the last one for ZUUL API gateway. To easily manage the containers…


Introduction

This is the first of many articles on becoming a super full stack developer. With any Information Technology system, persistence is key. In this article, we are going to learn how to set up a custom Postgres docker image with predefined databases and tables. We will also expose the database application from inside the image to the outside via port forwarding. And the last interesting part will be persisting the tables information on the outside of the container by mounting the volumes to a dedicated directory.

Please look at the overview image of what we are going to accomplish today…

Vutlhari Ndlovhu

Full Stack developer for over 15 years, I build Mobile Apps, Web Apps, Microservice, Middleware Integration, Workflow Engine, ETL and More...

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store