diff --git a/README.md b/README.md index de4274c..20952ff 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,54 @@ # vault-consul-swarm-cluster +### Prerequisite: +1. Docker +2. Docker Swarm -## Deploy Stack +### Enable Docker Swarm locally +``` +docker swarm init +``` + +### List Docker Swarm Node +``` +docker node ls +``` + +### Deploy Stack ``` env $(cat .env | grep ^[A-Z] | xargs) docker stack deploy -c stack.yml devops ``` -## Remove Stack +### Remove Stack ``` docker stack rm devops ``` -## List Docker Services +### List Docker Services ``` docker service ls ``` -## Access Vault UI +### Access Vault UI ``` open http://localhost:8200 ``` -## Access Consul UI +![](images/init.png) +![](images/unseal.png) +![](images/login.png) +![](images/vaultcli.png) + +### Access Consul UI ``` open http://localhost:8500 ``` +![](images/consul.png) +![](images/consulkv.png) + + +### Static credential +![](images/staticcred.png) + +### Dynamic credential +![](images/dynamiccred.png) \ No newline at end of file diff --git a/images/consul.png b/images/consul.png new file mode 100644 index 0000000..3203e69 Binary files /dev/null and b/images/consul.png differ diff --git a/images/consulkv.png b/images/consulkv.png new file mode 100644 index 0000000..7fefd36 Binary files /dev/null and b/images/consulkv.png differ diff --git a/images/dynamiccred.png b/images/dynamiccred.png new file mode 100644 index 0000000..5be9768 Binary files /dev/null and b/images/dynamiccred.png differ diff --git a/images/init.png b/images/init.png new file mode 100644 index 0000000..6c0cdd5 Binary files /dev/null and b/images/init.png differ diff --git a/images/login.png b/images/login.png new file mode 100644 index 0000000..04b9a05 Binary files /dev/null and b/images/login.png differ diff --git a/images/staticcred.png b/images/staticcred.png new file mode 100644 index 0000000..2e99ef9 Binary files /dev/null and b/images/staticcred.png differ diff --git a/images/staticcredreadwrite.png b/images/staticcredreadwrite.png new file mode 100644 index 0000000..df5e362 Binary files /dev/null and b/images/staticcredreadwrite.png differ diff --git a/images/unseal.png b/images/unseal.png new file mode 100644 index 0000000..255ca44 Binary files /dev/null and b/images/unseal.png differ diff --git a/images/vaultcli.png b/images/vaultcli.png new file mode 100644 index 0000000..688ed51 Binary files /dev/null and b/images/vaultcli.png differ