This is a Docker service for frpc (Fast Reverse Proxy Client) that uses environment variables for configuration. You can easily set up various network tunnels by configuring environment variables.
docker pull monlor/frpc
docker run -d \
-e SERVER_ADDR=your_frps_server_address \
-e SERVER_PORT=7000 \
-e TOKEN=your_frps_token \
-e TCP_SSH_22=127.0.0.1:22 \
-e HTTP_WEB_WWW=127.0.0.1:80 \
monlor/frpc
SERVER_ADDR: frps server address (default: 127.0.0.1)SERVER_PORT: frps server port (default: 7000)TOKEN: frps authentication token (optional)You can configure tunnels by adding environment variables. The format is as follows:
TCP/UDP/KCP:
{PROTOCOL}_{NAME}_{REMOTE_PORT}=LOCAL_IP:LOCAL_PORT
HTTP/HTTPS:
{PROTOCOL}_{NAME}_{DOMAIN}=LOCAL_IP:LOCAL_PORT
HTTP_PROXY:
PROXY_{NAME}_{REMOTE_PORT}_{USER}={PASSWORD}
PROTOCOL: Can be TCP, UDP, HTTP, HTTPS, or KCPNAME: Configuration nameREMOTE_PORT: Port on the remote serverLOCAL_IP: Local IP addressLOCAL_PORT: Local portDOMAIN: Domain or subdomain for HTTP/HTTPS services (use underscores instead of dots for full domains)USER: Username for HTTP proxyPASSWORD: Password for HTTP proxyExamples:
TCP_SSH_22=127.0.0.1:22: Map local port 22 (SSH service) to remote server port 22HTTP_WEB_WWW=127.0.0.1:80: Map local port 80 (Web service) to subdomain wwwHTTP_WEB_WWW_EXAMPLE_COM=127.0.0.1:80: Map local port 80 to custom domain www.example.comPROXY_HTTP_8080_USER=password: Configure HTTP proxy on remote port 8080 with authenticationYou can add any number of similar environment variables to configure multiple tunnels.
Content type
Image
Digest
sha256:90cc4331d…
Size
9 MB
Last updated
about 2 years ago
docker pull monlor/frpc