0

I have a docker container with linux and a python script in it that handles http traffic. Inside the container everything works ok. How can I configure this container to be like a proxy server for my local machine? What if I set the address / port of this container as a proxy server in the browser settings and it returns the processed traffic to me in the browser?

  • I'm assuming your script handles traffic going in via some port. [This thread](https://stackoverflow.com/questions/17770902/forward-host-port-to-docker-container) goes over how to configure the container to forward traffic from the host machine to the container. using docker-compose is probably the easiest route. For accessing the processed traffic, you'll need another server in the container for handling requests. You'd do the same steps for linking your host machine and the container, then access it by visiting the ip:port you have configured – smcrowley Oct 07 '22 at 00:48

0 Answers0