跳到正文

DockFlare

热门趋势活跃
ChrispyBacon-dev/DockFlare

通过 Docker 标签自动配置 Cloudflare Tunnel 入口、DNS 和 Access——几秒内就能让容器拥有安全的公网地址。

在 GitHub 查看
星标
2475
Fork
107
关注
2475
未关闭 Issue
2

该介绍目前仅提供英文版本。

Overview

DockFlare is a self-hosted control plane for Cloudflare Tunnel. It watches your Docker containers and automatically creates the tunnel ingress rules, DNS records, and Cloudflare Access applications needed to publish them — so a container goes from running to a secure public URL without touching the Cloudflare dashboard.

It works by reconciliation: you declare what you want with Docker labels or rules in its web UI, and DockFlare keeps Cloudflare’s configuration in sync, correcting drift over time.

Key Features

  • Automatic service discovery from Docker labels
  • Tunnel ingress orchestration, including advanced origin options
  • DNS management with zone-aware record placement
  • Cloudflare Access integration: create Access applications, reusable policies, and groups
  • Manual rules for workloads that don’t run in Docker, or a hybrid of both
  • Multi-host mode: a master plus lightweight agents on other servers, secured with Zero Trust service tokens
  • Optional email suite built on Cloudflare Email Routing and R2, with an installable webmail client
  • Encrypted backup and restore of configuration and state
  • Web UI in 13 languages

How It Works

  1. Collects the desired state from container labels, manual rules, and remote agents.
  2. Compares it with its stored state and with Cloudflare.
  3. Applies the differences to tunnel ingress, DNS, and Access.
  4. Keeps the managed cloudflared connector aligned.

Getting Started

You need Docker and Docker Compose, a Cloudflare account, your account and zone IDs, and an API token with Tunnel, DNS, and Access permissions. The installer script walks you through setup interactively; you can also use the Docker Compose stack described in the project’s documentation.

Then expose a service by adding labels to it:

services:
  internal-tool:
    image: nginx:latest
    labels:
      - "dockflare.enable=true"
      - "dockflare.hostname=tool.example.com"
      - "dockflare.service=http://internal-tool:80"
      - "dockflare.access.policy=authenticate"
      - "[email protected]"

DockFlare creates the public hostname, routes it through your tunnel, and puts it behind Cloudflare Access.

Use Cases

  • Homelabs publishing self-hosted apps securely without opening router ports
  • Small teams running internal tools behind single sign-on
  • Multi-server Docker setups that need one place to manage ingress and access

按共同分类和标签排序的同类开源项目。

全部网络项目 →