Create a Docker Swarm cluster with Terraform and Ansible - Marcelo Pinheiro

Опубликовано: 01 Апрель 2026
на канале: InfoQ Brasil
1,967
17

Do you want to start in the world of Infrastructure as Code with a useful case? Let's go creating a multicloud Docker Swarm cluster to run your microservices as a good starting point, using Terraform to provision servers and Ansible to install and configure Docker to run in Swarm mode.

Topics

Infraestructure as a Code: a developer overview

Probably we, as developers, already listened about the concept but we don't have much interest because operation guys talk about it. In this little topic, I will explain it in a developer point of view based on my experience as a programmer.

Terraform: manage resources in the cloud

A introduction to Terraform, how we can provision server instances, databases, virtual networks, DNS zones and other stuff writing code as recipes. I will use my current project - https://github.com/salizzar/terraform... - as a base to create the infrastructure that will be used on my keynote.

Docker Swarm: run containers in a cluster

A brief introduction to Docker Swarm and their features to run containers distributed in a cluster, with special attention to the concept of Stacks (a group of containers running as services inside the cluster).

Ansible: configure servers with ease

A practical overview of Ansible and good practices focused in how to setup Docker to run in Swarm mode (project source code under development).

--

About Marcelo Pinheiro:

Fullstack developer with 17 years of experience, worked with corporative / emergent programming languages and most famous relational and NoSQL databases running in distributed / high availability / critical systems. Today works as DevOps Engineer obsessed with Infrastructure Automation on Work & Co.