Self-host consul
v2.1.0Service discovery and service mesh control plane
helm install consul hashicorp/consul --set global.name=consul --create-namespace --namespace consul- 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))
hashicorp/consulWhat 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
TraefikTraefik is a self-hosted, open-source reverse proxy that auto-discovers services from Docker, Kubernetes, and other orchestrators to route traffic without manual config.CompareTraefik with consul
etcdA self-hosted, open-source distributed key-value store using Raft consensus for critical data in clustered systems. CNCF graduated project.Compareetcd with consul
kiteSelf-hosted, open-source Kubernetes workspace for multi-cluster management: RBAC, LDAP/OAuth login, Prometheus monitoring, Helm, audit logs, and an AI assistant.Comparekite with consul
uncloudSelf-hosted, open-source Docker clustering tool: WireGuard mesh, Compose deploys, automatic HTTPS — an alternative to Kubernetes and Swarm.Compareuncloud with consul
NomadSelf-hosted Nomad clusters schedule containers, VMs, binaries and batch jobs on Linux, Windows or macOS and need no external datastore.CompareNomad with consul
Versity S3 GatewayVersityGW is an open-source, Apache-2.0 S3 object-storage gateway in Go: it turns POSIX filesystems, ScoutFS or Azure Blob into an S3 API, with IAM, WebUI and Helm.CompareVersity S3 Gateway with consul
corootSelf-hosted, open-source APM and observability platform where eBPF agents capture every telemetry signal without code changes, with service maps and SLO alerting.Comparecoroot with consul
prometheusPrometheus is a self-hosted, open-source monitoring toolkit that pulls metrics via HTTP, stores them locally, and uses PromQL for powerful queries and alerting.Compareprometheus with consul
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 is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
- Documentation and Tutorials: [https://developer.hashicorp.com/consul]
- Forum: Discuss
Consul provides several key features:
More in Networking
corednsSelf-hosted, open-source DNS server and forwarder built from chained plugins: DoT/DoH/DoQ, DNSSEC, caching, and Kubernetes or etcd service discovery.
CoturnOpen-source TURN and STUN server relaying WebRTC and VoIP media through NAT; self-hosted via apt or Docker, with Prometheus metrics and SQL/Redis user databases.
ddns-updaterOpen-source self-hosted DDNS client that keeps A and AAAA records current for many DNS providers, with a web UI, Shoutrrr notifications and a 12MB Docker image.
D-NETSelf-hosted network tool automating DDNS, dynamic CDN, port forwarding, reverse proxy, and ACME SSL certificates via web UI.
dnsboxDNSBox is a self-hosted DNS server that issues Let's Encrypt SSL certs for any public IP without a domain, enabling instant HTTPS for servers and IoT devices.
docker-ddnsSelf-hosted dynamic DNS server using Docker, Go, and Bind9 that lets you connect to home devices from anywhere using a VPS and domain.
docker-duckdnsA self-hosted Docker container that automatically updates DuckDNS subdomains with your current public IP address every 5 minutes, supporting both IPv4 and IPv6.
docker-netbootxyzA Docker container running a PXE boot environment with web menu editor, TFTP server, and local OS image mirroring for faster network booting.
DockTailOpen-source, self-hosted Go agent that watches Docker labels and publishes containers as native Tailscale Services, with HTTPS, TCP, PROXY protocol and Funnel support.
EZ-WifiBroadcastOpen-source, self-hosted FPV video link that streams low-latency 1080p video, MAVLink telemetry and RC control between a drone camera and its ground station.
FulcrumFulcrum is a self-hosted, open-source SPV server implementing the Electrum protocol for Bitcoin Cash, Bitcoin, and Litecoin. Written in C++20.
fxtun.devfxTunnel is an open-source Go reverse tunnel for HTTP, TCP, UDP with custom subdomains, inspector, and desktop GUI. An ngrok alternative with servers in Russia.
0 comments