Setting up a Cloudflare Tunnel using Docker

  • Post author:WunderTech
  • Post last modified:June 15, 2024
  • Post category:Docker
  • Reading time:1 mins read

WunderTech

WunderTech is maintained by Frank, an IT professional with 15+ years of experience in corporate IT and application management. Frank holds a Bachelor of Science in Computer Information Systems and a Master of Business Administration (MBA). He focuses on sharing his experience with others on his website and YouTube channel.

The video above displays how to set up a Cloudflare Tunnel using Docker for a complete Zero Trust Network. Cloudflare Tunnels require no port forwarding and allow you to expose multiple services safely and securely.

Cloudflare Tunnel Docker Compose Example

Add your token below or customize this generic Docker Compose file for Cloudflared.

version: "3.3"
services:
  cloudflared:
    image: cloudflare/cloudflared:latest
    command: tunnel run
    environment:
      - TUNNEL_TOKEN=[YOUR_TOKEN]