Final steps for local Swarm testing

To make sure that we have all the images ready for final testing, we must make sure we are using the full image name, including the private registry's FQDN/namespace, and make sure the real (not the dev) version of the Dockerfile is used for the build. To accomplish this, we create a docker-compose-build.yml file, as shown in the following code, with only build (no deployment) information. 

We do not need a namespace, or need to push the reverse_proxy image, as it is only for local developer use. We add the dtr.mydomain.com/dev prefix to the images so that we can use the DTR's dev organization as the developer image sandbox. We add a :local tag to our images so that we know they are locally built and pushed. ...

Get Mastering Docker Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.