Skip to content

shokunin/docker-consul-terraform-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#consul-master

Build a consul cluster on docker and run with terraform

##prerequisites

  1. Install and configure docker
  2. Install terraform from Hashicorp

##building

Building the consul docker image is done using the following command

sudo docker build -t maguec/consul-master .

##running

# destroy the directory and re-create - stale data will cause 500 errors
sudo rm -rf /data/docker/consul1
sudo mkdir -p /data/docker/consul1

cd terraform

# view what would happen
sudo terraform plan

# apply the configuration
sudo terraform apply

# due to the spinup time you may have to run apply twice

##using To connect to the consul web-ui

http://localhost:8500/ui/

About

Set up a consul cluster on docker with terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published