Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dwilbraham/docker-compose-etcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose-etcd

Docker Compose configuration and scripts for experimenting with etcd and etcd-browser.

To run etcd and etcd-browser run:

docker-compose up -d

To validate that etcd started correctly run:

etcd=$(bin/service_address.sh etcd0 2379)
curl $etcd/v2/keys
curl $etcd/v2/keys/foo -XPUT -d value=bar

etcd_all="{$(bin/service_address.sh etcd0 2379),$(bin/service_address.sh etcd1 2379),$(bin/service_address.sh etcd2 2379)}"
curl $etcd_all/v2/keys

curl $etcd_all/v2/stats/leader

If you are using firefox you can view your new index in etcd-browser by running bin/firefox_etcd.sh.

This setup and the example scripts should be compatible with any of the following scenarios:

Written with StackEdit.

About

docker-compose-etcd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages