January 2018
Intermediate to advanced
366 pages
9h 7m
English
First, we have to delete the old instance of MongoDB in the docker-compose.yml file that was being shared in the Shared design pattern. This instance will have no more use for us because each of the News microservices will have their own database. Let's remove the old code:
mongo:image: mongo:latestcontainer_name: "mongodb"ports:- 27017:27017command: mongod --smallfiles --logpath=/dev/null # --quiet
After we remove the common container Mongo, we will create our RabbitMQ container, which served as the message broker to our microservices.
In the root directory of our project, we will create a new directory called queue. Inside the queue directory, let's create a Dockerfile with the following configuration: ...
Read now
Unlock full access