Using Terraform to deploy a Docker Swarm stack on OCI

Using Terraform to deploy a Docker Swarm stack on OCI

Oracle Always Free Cloud instances in HA configuration. My own dev/test cloud environment using Oracle Always Free instances. My own IoT deployment at Oracle Cloud Free using Autonomous DB and ML. Using Let's Encrypt certs with Oracle Cloud Load Balancer — including auto renew feature.

Oracle Cloud Infrastructure (OCI) is an IaaS that delivers on-premises, high-performance computing power to run cloud native and enterprise company’s IT workloads. OCI provides real-time elasticity for enterprise applications by combining Oracle’s autonomous services, integrated security, and serverless compute. Available for public cloud.

But instead of describing how to deploy following step by step instructions this post is about using Infrastructure as Code using Terraform and Oracle Resource Manager, at the end of the post you will have a two node Swarm Cluster running at Oracle Always Free instances just in a few clicks.

terraform traefik oci docker-swarm docker

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Kubernetes vs. Docker Swarm (k8 vs Docker Swarm)

Basically, both Kubernetes and Docker Swarm both are the container orchestration tool. The rise in interest to containers has in turn brought in higher demands for their deployment and management. Both Kubernetes and Docker Swarm are important tools that are used to deploy containers inside a cluster. So the question arises here is which one to use? So lets discuss one by one and see the the differances between them.

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.

Docker Swarm: Container Orchestration Using Docker Swarm

In this demonstration, we will see how to configure the docker swarm and how to perform basic tasks. A swarm consists of multiple Docker hosts that run in swarm mode and act as managers (to manage membership and delegation) and workers (which run swarm services). A given Docker host can be a manager, a worker, or perform both roles.

Graduating From Docker to Docker Swarm

Graduating From Docker to Docker Swarm: How Docker Swarm introduced me to distributed container orchestration and established the foundations for Kubernetes.

Using Docker Swarm Secrets to Store and Rotate your SSL Certificates with Nginx

Docker Swarm has an excellent feature out of the box — Docker Swarm secrets. Using it, you can easily keep your sensitive data like credentials, TLS certificates, etc. In terms of Docker Swarm services, a secret is a blob of data, such as a password, SSH private key, SSL certificate, or another piece of data that should not be transmitted over a network or stored unencrypted in a Dockerfile or in your application’s source code.