Simple reverse HTTP proxy with nginx
275
This image contains a nginx proxy configured to act as reverse proxy to all HTTP requests.
Start proxy:
$ docker run -p 127.0.0.1:8000:8000 jarppe/reverse-proxy:latest
Use proxy with curl:
$ export http_proxy=http://127.0.0.1:8000
$ curl http://metosin.fi
Note from reverse-proxy logs how the request was routed via it.
I have used this with Kubernetes systems where I have many services and pods that I would like access via HTTP. Instead of opening a kubectl port-forward to each an every endpoint, I can run container of this image in cluster, and create a port-forward tunnel from my host to this containers port 8000.
This work is copyright (c) Jarppe Länsiö 2025 and is licensed under CC0
Content type
Image
Digest
sha256:a1ad53678…
Size
20.7 MB
Last updated
over 1 year ago
docker pull jarppe/reverse-proxy