Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.
/ swarm_init Public archive

Docker Stack to initialize a Swarm Cluster

Notifications You must be signed in to change notification settings

acidtango/swarm_init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

⚠️ DEPRECATED: This project has been moved to https://github.com/acidtango/acid_swarm

swarm_init

Docker Stack to initialize a Swarm Cluster with Traefik as reverse proxy and Swarmpit to visualize the cluster.

Requisites

This compose file was created to be deployed inside a Swarm Cluster. For more info on how to create a Swarm cluster check the Docker Docs.

You could also use our terraform template to deploy a Swarm cluster in AWS.

Usage

All the following commands must be executed in a Swarm Manager node.

First, we will create the overlay network that Traefik will use to distribute the load across the entire Cluster. We are naming this network traefik-net, but feel free to give it the name you want. Just remember to change the name in the compose file too.

docker network create -d overlay traefik-net

Clone this repository and deploy the stack specifying the domain to use for Traefik rules.

$ git clone https://github.com/acidtango/swarm_init.git
$ DOMAIN_NAME=your-domain.com docker stack deploy -c swarm_init/docker-compose.yml infrastructure

About

Docker Stack to initialize a Swarm Cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published