Back to Vol 20, Issue 6

PHP Architect · Vol 20, Issue 6 · June 2021

The Workshop: Docker Swarm

by Joe Ferguson

Docker Swarm is a mode in which Docker deploys container services across a cluster. Spreading a service across multiple swarm nodes (systems running Docker joined to the same swarm cluster) allows us to perform load balancing and rolling updates to our application. We also can easily horizontally scale by adding more nodes and scaling services up. Previously when we've worked with Docker Compose files, we've declared services made up of containers and their operational parameters; we can deploy these same compose files as a "stack" in swarm mode. Our goal this month is to cover how to build container images for our application and orchestrate the services required to support our app in a testing or staging environment.

The full article is in PHP Architect Vol 20, Issue 6. Subscribe to read it and every new issue.

Subscribe
Joe Ferguson

About the author

Joe Ferguson

Joe Ferguson is a PHP developer and community organizer. He is involved with many different technology related initiatives in Memphis including the Memphis PHP User group. He’s been married to his extremely supportive and amazing wife for a really long time and she turned him into a crazy cat man. They live in the Memphis suburbs with their two cats.

Mastodon: https://phpc.social/@joepferguson

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →