https://github.com/retailify/docker-etcd
etcd key-value store - version 3.0.4
https://github.com/retailify/docker-etcd
Last synced: 11 months ago
JSON representation
etcd key-value store - version 3.0.4
- Host: GitHub
- URL: https://github.com/retailify/docker-etcd
- Owner: retailify
- Created: 2016-08-15T09:05:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T13:54:30.000Z (almost 10 years ago)
- Last Synced: 2025-02-13T15:24:42.528Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## etcd container
***NOTE: latest etcd release 3.0.4 on alpine 3.4***
This was a clone of [elcolio/etcd](https://hub.docker.com/r/elcolio/etcd/).
The `-data-dir` is a volume mounted to `/data`, and the default ports are bound to Etcd and exposed.
Recently added a run script so that http is not hard-coded into the Dockerfile (for running over SSL). Just overwrite `$CLIENT_URLS` and `$PEER_URLS` at runtime (these are the **listening** URLs). You'll still need to set the `-advertise-client-urls` and `-initial-advertise-peer-urls` flags if the container will be part of a cluster.
Since the image uses an `ENTRYPOINT` it accepts passthrough arguments to etcd.
```sh
docker run \
-d \
-p 2379:2379 \
-p 2380:2380 \
-p 4001:4001 \
-p 7001:7001 \
-v /data/backup/dir:/data \
--name retailify-etcd \
retailify/docker-etcd:latest \
-name retailify-etcd \
-discovery=https://discovery.etcd.io/blahblahblahblah \
-advertise-client-urls http://192.168.160.56:4001 \
-initial-advertise-peer-urls http://192.168.160.56:7001
```