selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

consul logo

Self-host consul

v2.1.0

Service discovery and service mesh control plane

ReleaseSource AvailableBUSL-1.1
helm install consul hashicorp/consul --set global.name=consul --create-namespace --namespace consul
Updated3 weeks ago
LanguageGo
Setup difficultyAdvanced
Stars
30 112
Ports
8300 (Server RPC, used for communication between Consul clients and servers for internal request forwarding), 8301 (Serf LAN gossip between agents within a datacenter (TCP and UDP)), 8302 (Serf WAN gossip, used only by Consul servers between datacenters (TCP and UDP)), 8500 (HTTP API and web UI interface), 8600 (DNS interface (TCP and UDP))
Docker
hashicorp/consul

What is consul?

Consul is a distributed service networking platform that acts as the control plane for finding, connecting and securing services on VMs, containers and Kubernetes. A long-running agent on every node registers services into a central catalog that you query through DNS or an HTTP API, and health checks stop traffic from reaching unhealthy hosts. Consul Service Mesh adds automatic TLS between services using sidecar proxies with transparent proxying, controlled by identity-based intentions, while Consul API Gateway governs access into the mesh. Dynamic configuration is available through the same HTTP API for storing service parameters and metadata, and there is a browser UI plus a CLI that wraps the API. Servers agree on state with Raft and track membership with Serf gossip, so a single deployment can span many datacenters and regions. You install it by downloading the consul binary (also via apt, yum or brew), running the hashicorp/consul container image, or using the HashiCorp Helm chart on Kubernetes; the container's default agent -dev command is explicitly not for production. The code is licensed BUSL-1.1, with a free community edition and a commercial Consul Enterprise for larger organizations, alongside a hosted HCP Consul offering.

consul alternatives

Should you self-host consul?

consul scores 74/100 on selfhost.directory (how scoring works) and ranks #2 of 31 in Networking. It has 30 112 GitHub stars, +19 in the last 30 days.

It shipped 7 stable releases in the past year. The latest, v2.1.0, came out on 22 October 2026. New versions land roughly every 5 weeks.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is BUSL-1.1-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is headscale (82/100, 45 681 stars). It scores higher overall, so compare the two before you pick. See consul vs headscale side by side.

Features

  • Access Control Lists (ACLs)Tokens are the core authentication method; required for UI login and API/CLI requests when ACLs are enabled.
  • API Gateway
  • CLI
  • Cluster consensus (Raft)
  • Gossip membership
  • Health Checking
  • Key-value / dynamic configuration store
  • L7 traffic management
  • Multi-datacenter support
  • Observability
  • REST API
  • Service Discovery
  • Service mesh with automatic TLS
  • Transparent proxying
  • Web UI

consul README

Consul logo Consul

License: BUSL-1.1 Docker Pulls Go Report Card Coverage

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.

Consul provides several key features:

How to install consul

Install consul with Kubernetes

Add the HashiCorp Helm repository:

$ helm repo add hashicorp https://helm.releases.hashicorp.com
 "hashicorp" has been added to your repositories

Run the following command to install the latest version of Consul on Kubernetes with its default configuration.

$ helm install consul hashicorp/consul --set global.name=consul --create-namespace --namespace consul

Helm-based install; docs also cover OpenShift and other runtimes.

How to configure consul

  • -devAgent CLI flag used by the official container command: starts an insecure single-node development agent that stores everything in RAM, exposes the web UI and HTTP endpoints, and bootstraps itself; not for production.

    values: flag (present/absent)

  • -client0.0.0.0Agent CLI flag that binds the client interfaces (HTTP API, DNS, UI) to the given address; the container command uses 0.0.0.0.

    values: IP address

  • acl_tokens_agentAgent configuration setting used to specify the ACL token linked to a policy (for example a node identity) when configuring the agent.
  • HASHICORP_RELEASEShttps://releases.hashicorp.comEnvironment variable set in the official container image with the location of the HashiCorp releases used to fetch the Consul binary.

consul releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Networking

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…