Docker sysbox container helper for naughty network containers.
Define ENV properties that start with "FORWARD" and set their values to:
[inbound port]:[inner hostname/ip]:[inner port]
The container then port-forwards the incomming traffic to the internal services as you woud do with any other firewall NAT rules.
version: "3.9"
services:
proxy:
build: .
image: haxagon/proxy
runtime: sysbox-runc
environment:
- "FORWARD_WEB=8001:service1:80"
- "FORWARD_SSH=2201:service1:22"
- "FORWARD_WEB=8002:service2:80"
- "FORWARD_SSH=2202:service2:22"
ports:
- 8001:8001
- 2201:2201
- 8002:8002
- 2202:2202
Content type
Image
Digest
sha256:68860d6dd…
Size
8.7 MB
Last updated
over 3 years ago
docker pull haxagon/proxy