Technical requirements
For this chapter, you need to install Docker, version 18.09 or above. See the official documentation (https://docs.docker.com/install/) for how to do so for your platform.
Check the version with the following command:
$ docker version
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:39 2019
OS/Arch: darwin/amd64
Experimental: false
You need to install Docker Compose version 1.24.0 or above as well. Note that, in some installations, such as macOS, this is automatically installed for you. Check the installation instructions in the Docker documentation (https://docs.docker.com/compose/install/):
$ docker-compose version
docker-compose version 1.24.0, build 0aa5906
docker-py version: 3.7.2
CPython version: 3.7.3
OpenSSL version: OpenSSL 1.0.2r 26 Feb 2019
The code is available on GitHub, in this directory: https://github.com/PacktPublishing/Hands-On-Docker-for-Microservices-with-Python/tree/master/Chapter03. There's a copy of ThoughtsBackend presented in Chapter 2, Creating a REST Service with Python, but the code is slightly different. We will look at the differences in this chapter.