Public Repository

Last pushed: 2 years ago
Short Description
Consul built on top of Alpine Linux
Full Description

Consul Server

Consul Server, is a key value, service discovery, and DNS provider.

Single Instance

docker run -d --name consul \
           -p '8300:8300' \
           -p '8301:8301' \
           -p '8301:8301/udp' \
           -p '8302:8302' \
           -p '8302:8302/udp' \
           -p '8400:8400' \
           -p '8500:8500' \
           -p '53:8600/udp' \
           emergingtechnologyadvisors/consul-server:latest \
           -bootstrap -advertise 10.0.0.1 -recursor 8.8.8.8 -recursor 8.8.4.4

Cluster

A Consul cluster is made up of 1 master node and N number of nodes. To run in cluster mode, you must specify the number of nodes for your master node to expect (number includes the master). Example below is a two node cluster. The IP addresses are examples and should be replaced with the ip address of the machine they are hosted on.

Master Node

docker run -d --name consul \
           -p '8300:8300' \
           -p '8301:8301' \
           -p '8301:8301/udp' \
           -p '8302:8302' \
           -p '8302:8302/udp' \
           -p '8400:8400' \
           -p '8500:8500' \
           -p '53:8600/udp' \
           emergingtechnologyadvisors/consul-server:latest \
           -bootstrap-expect 2 -advertise 10.0.0.1 -recursor 8.8.8.8 -recursor 8.8.4.4

Nodes

docker run -d --name consul \
           -p '8300:8300' \
           -p '8301:8301' \
           -p '8301:8301/udp' \
           -p '8302:8302' \
           -p '8302:8302/udp' \
           -p '8400:8400' \
           -p '8500:8500' \
           -p '53:8600/udp' \
           emergingtechnologyadvisors/consul-server:latest \
           -join 10.0.0.1 -advertise 10.0.0.2 -recursor 8.8.8.8 -recursor 8.8.4.4

Security Vulnerabilities

If you discover a security vulnerability within consul-server, please send an e-mail to Emerging Technology Advisors at ops@eta.im. All security vulnerabilities will be promptly addressed.

License

Released under an Apache 2.0 License. See LICENSE

Docker Pull Command
Owner
emergingtechnologyadvisors

Comments (0)