Skip to content

Commit

Permalink
MINOR: README
Browse files Browse the repository at this point in the history
Section to explain the start up procedure for docker-compose example
application.
  • Loading branch information
bedis committed Dec 8, 2018
1 parent e4e30ce commit 7ac49a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions blog/building_service_mesh/README.md
Expand Up @@ -64,6 +64,20 @@ It embeds configuration for a sidecar which:
* expose the 'www' local application on the external network
* expose a remote 'redis' service on the loopback, to be consumed by the local 'www' service

Docker-compose usage
====================

Run the following commands in that order:
```
docker-compose up -d consul-server
sleep 10
docker-compose exec consul-server curl --request PUT --header "X-Consul-Token: mastertoken" --data '{ "ID": "agenttoken", "Name": "Agent Token", "Type": "client", "Rules": "node \"\" { policy = \"write\" } service \"\" { policy = \"write\" }" }' http://localhost:8500/v1/acl/create
sleep 1
docker-compose up -d www redis
```

By default, the ACL will deny the traffic. In order to allow 'www' to contact 'redis', you must create the relevant intention in consul-server UI.

Usage
=====

Expand Down

0 comments on commit 7ac49a3

Please sign in to comment.