We are now down to the business end of the chapter, which is to deploy our sample todobackend application to our newly created Docker swarm cluster. As you might expect, there are a few challenges we are going to encounter, which require the following configuration tasks to be performed:
- Integrating Docker Swarm with the Elastic Container Registry
- Defining a stack
- Creating shared storage for hosting static content
- Creating a collectstatic service
- Creating persistent storage for storing the todobackend database
- Secrets management using Docker Swarm
- Running database migrations
The todobackend application is already published in an existing Elastic Container Registry (ECR) repository, and ideally we want to be able to integrate our Docker swarm cluster so that we can pull private images from ECR. As of the time of writing this book, ECR integration is supported in a somewhat limited fashion...