From 6ede6120ba964f113fc3948bdb4f72e8f7547c0e Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 21 May 2020 15:14:29 +0800 Subject: [PATCH] add etcd --- README.md | 3 ++- etcd/README.md | 7 +++++++ etcd/docker-compose.yml | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 etcd/README.md create mode 100644 etcd/docker-compose.yml diff --git a/README.md b/README.md index 2dc3c9e..bdefd5c 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ A collection of delicious docker recipes. - [x] prestodb (official) - [x] prestosql (community) - [x] superset-arm -- [x] zookeeper-arm ## IoT @@ -80,6 +79,7 @@ A collection of delicious docker recipes. - [x] ggr - [x] ggr-ui - [x] jsonwire-grid +- [x] zookeeper-arm ## Monitor @@ -297,6 +297,7 @@ A collection of delicious docker recipes. - [x] drupal - [x] elastichq/elasticsearch-hq - [x] elk +- [x] quay.io/coreos/etcd - [x] flogo/flogo-docker - [x] mher/flower - [x] ghost diff --git a/etcd/README.md b/etcd/README.md new file mode 100644 index 0000000..69f702b --- /dev/null +++ b/etcd/README.md @@ -0,0 +1,7 @@ +etcd +===== + +[etcd][1] is a distributed, reliable key-value store for the most critical data +of a distributed system. + +[1]: https://etcd.io/ diff --git a/etcd/docker-compose.yml b/etcd/docker-compose.yml new file mode 100644 index 0000000..a7126b3 --- /dev/null +++ b/etcd/docker-compose.yml @@ -0,0 +1,20 @@ +# https://etcd.io/docs/v3.4.0/op-guide/container/ + +version: "3.8" +services: + etcd: + image: quay.io/coreos/etcd:v3.4.8 + command: > + etcd --name=node1 + --data-dir=/data + --initial-advertise-peer-urls=http://1.2.3.4:2380 + --listen-peer-urls=http://0.0.0.0:2380 + --advertise-client-urls=http://1.2.3.4:2379 + --listen-client-urls=http://0.0.0.0:2379 + --initial-cluster=node1=http://1.2.3.4:2380 + ports: + - "2379:2379" + - "2380:2380" + volumes: + - ./data:/data + restart: unless-stopped