This repository contains a Vagrantfile and associated scripts for setting up a Docker Swarm cluster with four nodes: one manager node named master
and three worker nodes named node01
, node02
, and node03
.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed on your machine:
- Clone the repository:
bash git clone https://github.com/arhurGB80/docker-projeto2-cluster.git
- Navigate to the project directory:
bash cd docker-projeto2-cluster
- Start the Vagrant environment:
bash vagrant up
This will start the four virtual machines defined in the Vagrantfile
. Each virtual machine will be provisioned with Docker installed and configured as per the scripts included in the repository.
Once the Vagrant environment is up and running, you can interact with the Docker Swarm cluster. The master
node is initialized as the manager of the swarm, and the node01
, node02
, and node03
nodes are added as workers.