Skip to content

gongzhang/haport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.