docs - Bind API to all the interfaces of the container

Fixes the issues that requests could not be sent from the host in Windows and Mac by binding the API to all the container interfaces instead of only localhost.
This may create issues with get_all_appointments, since it can only be called from inside the container. Not a big deal since that's more of a dev endpoint, but it'll
be nice to give it a fix eventually.
This commit is contained in:
Sergi Delgado Segura
2020-06-09 13:27:22 +02:00
parent 3f8bc46bc3
commit 7d5e595be3

View File

@@ -149,9 +149,13 @@ docker run -p 9814:9814 \
-e BTC_FEED_CONNECT=host.docker.internal \
-e BTC_RPC_USER=<rpc username> \
-e BTC_RPC_PASSWD=<rpc password> \
-e API_BIND=0.0.0.0 \
-it teos
```
Notice that we also needed to add `API_BIND=0.0.0.0` to bind the API to all interfaces of the container.
Otherwise it will bind to `localost` and we won't be able to send requests to the tower from the host.
## Interacting with a TEOS Instance
You can interact with a `teos` instance (either run by yourself or someone else) by using `teos_cli` under `cli`.