Advertisement
techblog

cftunnel-compose

Jul 7th, 2023
1,542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.43 KB | None | 0 0
  1. version: '3'
  2.  
  3. # service description
  4. services:
  5.   # cloudflare tunnel
  6.   cloudflare-tunnel:
  7.     image: cloudflare/cloudflared
  8.     container_name: cloudflare-tunnel
  9.     hostname: cloudflare-tunnel
  10.     restart: unless-stopped
  11.     network_mode: "host"
  12.     command: tunnel run
  13.     volumes:
  14.      - /etc/localtime:/etc/localtime:ro
  15.       - ./config/hosts:/etc/hosts
  16.     environment:
  17.      - "TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}"
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement