Sign inSign up

colstrom/consul

By colstrom

Updated almost 8 years ago

Service discovery and configuration made easy. Distributed, highly available, and datacenter-aware.

Image
1

924

colstrom/consul repository overview

Consul on Docker

Service discovery and configuration made easy. Distributed, highly available, and datacenter-aware.

Usage

Bootstrap a single-node Consul cluster:

docker run colstrom/consul agent -data-dir /data -server -bootstrap-expect 1

Add a node to a Consul cluster:

docker run colstrom/consul agent -data-dir /data -server -join $IP_OF_ANY_CLUSTER_MEMBER

Start a non-server node to a Consul cluster:

docker run colstrom/consul agent -data-dir /data -join $IP_OF_ANY_CLUSTER_MEMBER

Exposed Ports

PortPurposeDescription
8300Server RPCUsed by servers to handle incoming requests from other agents.
8301Serf LANUsed to handle gossip in the LAN. Required by all agents.
8301/udpSerf LAN (UDP)Used to handle gossip in the LAN. Required by all agents.
8302Serf LANUsed by servers to gossip over the WAN to other servers.
8302/udpSerf LAN (UDP)Used by servers to gossip over the WAN to other servers.
8400CLI RPCUsed by all agents to handle RPC from the CLI.
8500HTTP APIUsed by clients to talk to the HTTP API.
8600DNS InterfaceUsed to resolve DNS queries.
8600/udpDNS Interface (UDP)Used to resolve DNS queries.

License

MIT

Contributors

Tag summary

Content type

Image

Digest

Size

8.7 MB

Last updated

almost 8 years ago

docker pull colstrom/consul