Skip to content

Commit

Permalink
Add note on service deployment URI for docker deployment of Restate
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Jan 31, 2024
1 parent 22c6145 commit 99945ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,12 @@ Once Restate is up, register the deployment in Restate by executing:
```shell
restate dp register http://host.docker.internal:9080
```
When running Restate with Docker, use `host.docker.internal` instead of `localhost` for the service deployment URI.
- Via `curl`:
```shell
curl localhost:9070/deployments -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'
```
When running Restate with Docker, use `host.docker.internal` instead of `localhost` for the service deployment URI.

This should give you the following output in case of the ticket reservation example:
```json
Expand Down

0 comments on commit 99945ee

Please sign in to comment.