Sign inSign up

gongzhang/haport

By gongzhang

•Updated about 7 years ago

Simple port forwarding using HAProxy.

Image
0

2.0K

gongzhang/haport repository overview

⁠haport

Simple port forwarding using HAProxy.

⁠Example

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.

Tag summary

Content type

Image

Digest

Size

12.4 MB

Last updated

about 7 years ago

docker pull gongzhang/haport