Skip to main content

Cloudflare Tunnel Configuration

  1. Navigate and sign in to the Cloudflare Zero Trust dashboard.

  2. Using the sidebar, navigate to Networks -> Tunnels.

  1. Click the blue 'Create a tunnel' button.

  1. Select the default 'Cloudflared' connector type, and then click 'Next'.

  1. Give the tunnel a name, then click 'Save tunnel'.

You will then be presented with a list of connector installation options.

  1. Copy the token and use it with your preferred connector. For Docker instructrions, see Docker Compose Template

  1. Once connected, your connector should appear at the bottom of the page. Click 'Next'.

  1. Finally, assign your service a subdomain, and point it to the backend.

Please note, when using Docker networking (as per Docker Compose Template), there is no requirement to 'expose' the port with a port mapping. You can use the name of the container, as defined in the docker-compose.yml file with the appropriate listening port.