docker-compose.yml
services:
cloudflared:
image: cloudflare/cloudflared
container_name: cloudflared
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
network_mode: host
services:
cloudflared:
image: cloudflare/cloudflared
container_name: cloudflared
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
network_mode: host
.env
CLOUDFLARE_TUNNEL_TOKEN=XXXX
git clone https://github.com/leakung/cf-compose cloudflare-tunnel