Setting up a Cloudflare Tunnel using Docker

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

Share what you're reading!

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]

WunderTech

Frank is an IT professional with 14+ years experience and the creator of WunderTech. He focuses on sharing his experience with others on computer hardware, servers, software, networking, and self-hosted apps. He has a BS in Computer Information Systems and an MBA. Learn more about Frank in his bio.