An open API service indexing awesome lists of open source software.

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

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
```