colstrom/consul

By colstrom

Updated about 6 years ago

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

Image
1

600

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

Docker Pull Command

docker pull colstrom/consul