Sign inSign up

xjonathanlei/cloudflare-tunnel

By xjonathanlei

•Updated about 4 years ago

Run Cloudflare Tunnels to expose local resources to the Internet through Cloudflare's network

Image
0

2.3K

xjonathanlei/cloudflare-tunnel repository overview

⁠Docker for Cloudflare Tunnels

A Docker image for running Cloudflare Tunnels to expose local resources to the Internet through Cloudflare's network. Supports linux/amd64 and linux/arm64.

⁠Docker Hub

Images are built with GitHub Actions⁠. Built images are pushed to Docker Hub⁠.

⁠Usage

Before running a Cloudflare tunnel through this image, you must first create a tunnel and save its credentials following Cloudflare's guide⁠. You may run the container with sh as entrypoint for quicking getting a disposable cloudflared installation.

⁠Configuration

The container is configured through environment variables.

  • CERT_PEM_BASE64

    The base64 encoded cert.pem file that's generated upon tunnel creation.

  • CLOUDFLARE_ACCOUNT_ID

    Cloudflare account ID.

  • CLOUDFLARE_TUNNEL_ID

    Tunnel ID as in the TunnelID field of the tunnel JSON file.

  • CLOUDFLARE_TUNNEL_SECRET

    Tunnel secret as in the TunnelSecret field of the tunnel JSON file.

  • CLOUDFLARE_TUNNEL_NAME

    Tunnel name as in the TunnelName field of the tunnel JSON file.

  • TARGET_URL

    The URL to which traffic is redirected.

⁠License

MIT⁠

Tag summary

Content type

Image

Digest

sha256:4af22ee85…

Size

17 MB

Last updated

about 4 years ago

docker pull xjonathanlei/cloudflare-tunnel