Skip to content

Commit

Permalink
Grout (ngrok alternative) using Docker doc
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavsingh committed May 15, 2024
1 parent 7bb04c0 commit afa89bc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
- [TLS Interception](#tls-interception)
- [TLS Interception With Docker](#tls-interception-with-docker)
- [GROUT (NGROK Alternative)](#grout-ngrok-alternative)
- [Grout using Docker](#grout-using-docker)
- [How Grout works](#how-grout-works)
- [Self-hosted Grout](#self-hosted-grout)
- [Proxy Over SSH Tunnel](#proxy-over-ssh-tunnel)
Expand Down Expand Up @@ -1348,6 +1349,22 @@ SUPPORT:
https://jaxl.io
```

## Grout using Docker

```console
docker run -it \
--entrypoint grout \
--rm -v ~/.proxy:/root/.proxy \
abhinavsingh/proxy.py:latest \
http://host.docker.internal:29876
```

Above:

- We changed `--entrypoint` to `grout`
- We replaced `localhost` with `host.docker.internal`, so that `grout` can route traffic to port `29876` running on the host machine
- *(Optional)* Mount host machine `~/.proxy` folder, so that `grout` credentials can persist across container restarts

## How Grout works

- `grout` infrastructure has 2 components: client and server
Expand Down

0 comments on commit afa89bc

Please sign in to comment.