docker run -d --name port-forwarding --cap-add=NET_ADMIN -e TARGET_IP=192.168.1.100 -e TARGET_PORT=12345 -p 8000:8000 justsky/port-forward
version: "3"
services:
port-forward:
container_name: port-forward
restart: always
image: justsky/port-forward
environment:
- TARGET_IP=192.168.1.100
- TARGET_PORT=12345
user: root
cap-add:
- NET_ADMIN
ports:
- 8000:8000
Variable | Default value | Allowed values | |
---|---|---|---|
TARGET_IP |
required | ||
TARGET_PORT |
required | 80 | 1-65535 |
LOCAL_PORT |
optional | 8000 | 1-65535 |