Last active
July 2, 2026 11:17
-
-
Save guibranco/c134d27df237186ed2de4244c79c42d1 to your computer and use it in GitHub Desktop.
ETCD + ETCD Workbench (web gui tool to manage ETCD) Docker compose file, with volume set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| etcd: | |
| image: gcr.io/etcd-development/etcd:v3.6.12 | |
| container_name: etcd | |
| restart: unless-stopped | |
| command: | |
| - etcd | |
| - --name=etcd0 | |
| - --data-dir=/etcd-data | |
| - --listen-client-urls=http://0.0.0.0:2379 | |
| - --advertise-client-urls=http://etcd:2379 | |
| - --listen-peer-urls=http://0.0.0.0:2380 | |
| ports: | |
| - "2379:2379" | |
| - "2380:2380" | |
| volumes: | |
| - etcd-data:/etcd-data | |
| healthcheck: | |
| test: ["CMD", "etcdctl", "endpoint", "health"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 3 | |
| start_period: 10s | |
| etcd-workbench: | |
| image: tzfun/etcd-workbench:latest | |
| container_name: etcd-workbench | |
| restart: unless-stopped | |
| ports: | |
| - "8002:8002" | |
| depends_on: | |
| etcd: | |
| condition: service_healthy | |
| volumes: | |
| etcd-data: |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
etcd + etcd-workbench β local dev stack π³
This
docker-compose.ymlspins up a single-node etcd v3.6.12 server alongside etcd-workbench, a browser-based UI for inspecting and managing etcd β ideal for local development and testing (no TLS/auth, so don't expose it publicly).What's inside
etcdgcr.io/etcd-development/etcd:v3.6.122379(client),2380(peer)etcd-workbenchtzfun/etcd-workbench:latest8002How it works
etcd0) with its data directory persisted in the named volumeetcd-data, so keys survive container restarts. Data is only wiped withdocker compose down -v.etcdctl endpoint health) gates the workbench startup viadepends_on: condition: service_healthy, so the UI only starts once etcd is actually ready.http://etcd:2379, so inside the workbench UI you add a connection using hostetcdand port2379(Docker DNS resolves the service name). From your host machine, uselocalhost:2379instead../etcd-workbench.conf) is optional β the image ships with a default config. Mount your own only to enable authentication or change the port.Usage
Repositories
The web/Docker version of etcd-workbench is archived and no longer maintained β development moved to the desktop app (releases prefixed
App-x.y.z). The Docker image (Web-1.1.4) still works fine for local testing, but don't expect updates or security patches. For anything longer-lived, consider the desktop app or plainetcdctl.