In order to test our microservice, we require a database, running migrations, and our service itself. We’re going to build a docker-compose.yml file which takes care of all of this.
The docker-compose file
In order to use the docker-compose.yml file, first you need to run make && make docker to build the required docker images.
I started with a simple docker-compose.yml file, like this:
version: '3.4' services: stats: image: titpetric/service-stats restart: always environment:...
Published on December 14, 2019 05:10