Simple port forwarding using HAProxy.
2.0K
Simple port forwarding using HAProxy.
Forward 0.0.0.0:9000 to 192.168.0.1:8000:
docker run --rm -it -e TARGET=192.168.0.1:8000 -p 9000:8000 gongzhang/haport
Or:
version: "3"
services:
haport:
image: gongzhang/haport
environment:
- TARGET=192.168.0.1:8000
ports:
- 9000:8000
Note that the internal port of the container is always same with the port in
TARGET.
Content type
Image
Digest
Size
12.4 MB
Last updated
about 7 years ago
docker pull gongzhang/haport