Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
s8sg authored May 24, 2020
1 parent da7c354 commit 9e51ec0
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
# faasflow-consul-statestore
A **[faas-flow](https://github.com/s8sg/faas-flow)** statestore implementation that uses Consul to store state

## Getting Stated

### Deploy Consul

#### Deploy in Swarm
```bash
docker service rm statestore_consul
docker pull s8sg/consul
docker stack deploy --compose-file=resource/consul-swarm.yml statestore
## Consul State-Store configuration
Below are the configuration
```
consul_url
consul_dc
```


### Use Consul StateStore in `faasflow`
* Set the `stack.yml` with the necessary environments
```yaml
consul_url: "statestore_consul:8500"
consul_url: "consul.faasflow:8500"
consul_dc: "dc1"
```
* Use the `ConsulStateStore` as a DataStore on `handler.go`
Expand Down

0 comments on commit 9e51ec0

Please sign in to comment.