version: "3"

services:
  cloudflared:
    container_name: 'cloudflared-tunnel'
    image: btcpayserver/cloudflared:2023.7.3
    command: 'tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}'
    restart: 'on-failure'
    environment:
      REAL_IP_HEADER: Cf-Connecting-Ip
    links:
      - nginx
