Sign inSign up

ogulcanaydogan/cloudflare-tunnel

By ogulcanaydogan

•Updated 7 months ago

Cloudflare Tunnel client for exposing local services

Image
0

901

ogulcanaydogan/cloudflare-tunnel repository overview

⁠Cloudflare Tunnel

Expose local services to the internet securely via Cloudflare Tunnel.

⁠Quick Start (Quick Tunnel)

docker run --network host \
  -e TUNNEL_URL=http://localhost:3000 \
  ogulcanaydogan/cloudflare-tunnel

⁠Quick Start (Named Tunnel)

docker run \
  -e TUNNEL_TOKEN=<your-tunnel-token> \
  ogulcanaydogan/cloudflare-tunnel

⁠Features

  • Named tunnels with token-based authentication
  • Quick tunnels for development
  • Built-in metrics endpoint
  • Health check ready
  • No-autoupdate for container stability

⁠Environment Variables

VariableDescriptionDefault
TUNNEL_TOKENCloudflare tunnel token (named tunnel)-
TUNNEL_URLLocal URL to expose (quick tunnel)http://localhost:8080
TUNNEL_HOSTNAMEPublic hostname-
TUNNEL_METRICSMetrics listen address0.0.0.0:2000
TUNNEL_LOGLEVELLog level (debug/info/warn/error)info

⁠Docker Compose Example

services:
  app:
    image: nginx
    ports:
      - "8080:80"

  tunnel:
    image: ogulcanaydogan/cloudflare-tunnel
    environment:
      - TUNNEL_TOKEN=${CF_TUNNEL_TOKEN}
    depends_on:
      - app

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:2c8813575…

Size

23.5 MB

Last updated

7 months ago

docker pull ogulcanaydogan/cloudflare-tunnel