From afa89bc74975cd683f7767a36bbd6864e55db220 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Thu, 16 May 2024 01:27:02 +0530 Subject: [PATCH] Grout (ngrok alternative) using Docker doc --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index b06d7ce81b..2d842c452b 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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