Self-host etcd with Levelrail
VerifiedA distributed key-value store for configuration and coordination, running as a single member.
- Authoretcd-io
- LicenceApache-2.0
- Memory256 MiB
- Archarm64
- Services1
How to self-host etcd
-
Pull the images
One image is pulled on your server.
Show images
quay.io/coreos/etcd:v3.5.17
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 2379.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
etcd requirements
- Memory
- About 256 MiB
- Architectures
- amd64 image published, arm64 tested
- Ports
- 2379
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- Apache-2.0, permissive license
- Verified. Verified on arm64 with image tag v3.5.17. Our CI ran this exact image version and it answered on its health path. Evidence
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then etcd. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the etcd docs page.
Deploy etcd your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy etcd from the CLI
levelrail-cli templates deploy etcd --name my-etcd Deploy etcd with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/etcd/deploy etcd configuration
etcd services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| etcd | quay.io/coreos/etcd:v3.5.17 | 2379 | etcd_data -> /etcd-data |
etcd environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 2379
- Volumes
- 1 named mount: etcd_data -> /etcd-data
etcd FAQ
How much memory does etcd need?
The catalog lists about 256 MiB of memory for etcd.
Does etcd run on arm64?
For etcd, arm64 is tested; amd64 is image published.
What licence is etcd under?
etcd is licensed under Apache-2.0, which is permissive, with few conditions on reuse.
Does etcd need configuration before it starts?
No. The template fills in its own defaults.
Which ports does etcd use?
etcd listens on port 2379 inside the stack.
Where does etcd keep its data?
In a named volume: etcd_data mounted at /etcd-data.
Can I deploy etcd on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for etcd, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image quay.io/coreos/etcd:v3.5.17 is what you deploy there.