https://docs.mitmproxy.org/stable/addons-examples/
services:
reverse-proxy:
image: mitmproxy/mitmproxy
command:
- mitmdump
- --ssl-insecure
- --listen-port=443
- --mode=reverse:https://www.google.com
- -s /src/script.py
ports:
- 8443:443
volumes:
- ./replace-body.py:/src/script.py
docker run -it --network=host curlimages/curl curl -v https://127.0.0.1:8443 --insecure