How it works...
In this recipe, we created two new services. One was a database to store the information for the Joomla! service. We used secrets to protect our passwords, and we used those secrets for the database service instead of hardcoding our passwords in the image, or passing them in as environmental variables as we did for the Joomla! service.
We also created a custom overlay network for our application, so that the two services could talk to each other across the cluster. That traffic was encrypted by default, which means all communication between our two services is secure.
Docker for Azure has a service that listens for new services that get added to the Swarm. When a new service has ports exposed, it will automatically configure ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access