DockFlare (Tunnel management)
Time Required
5 Minutes
Difficulty
Easy
Required Knowledge
Cloudflare DNS, Cloudflare Zero Trust, Docker Compose
Please ensure you have followed Set up Wildcard application before following this guide - you may accidentally make your internal resources public.
Generate an API key
You will need an API key with write access to your Cloudflare Zero Trust and DNS zones
Navigate to https://dash.cloudflare.com/profile/api-tokens
At API tokens, click on 'Create Token'
Select the 'Custom Token' and set the below
Give your token a name, eg "Dockflare"
Permissions:
Account
Cloudflare Tunnel
Edit
Account
Account Settings
Read
Account
Access: Apps and Policies
Edit
Zone
Zone
Read
Zone
DNS
Edit
Account Resources"
Include
All Accounts
Zone Resources"
Include
All Zones (or select specific domains)
Click on 'Continue to Summary'
Click on 'Create token'
Save your API key to your password vault
Get your Account ID
Navigate to https://dash.cloudflare.com/
Next to your name / account name, click on the 3 dots menu
Click on Copy Account ID
Save to your Password vault
Create Portainer Stack
How to use Dockflare
Add the following labels to any docker compose containers you wish to make accessible via Zero Trust,
and use the following env files
Last updated