Runs a Cloudflare Tunnel to securely expose internal Docker services to the internet without opening ports on the host.
This service creates the shared cloudflare-exposed bridge
network. Any service that needs external access must join
this network.
The tunnel also attaches to the dokploy-network so it can
reach services that are only published on that network
(those that don't declare cloudflare-exposed). Dokploy
provides dokploy-network automatically on deploy.
- The
cloudflaredcontainer establishes a tunnel using your Cloudflare token. - The
cloudflare-exposedDocker network is created and shared across services. - Services attached to this network become reachable through Cloudflare.
- Routes and access policies are managed in the Cloudflare Zero Trust dashboard.
| Variable | Description |
|---|---|
CLOUDFLARE_TUNNEL_TOKEN |
Tunnel token from Cloudflare Zero Trust |
Add the cloudflare-exposed network to any service
you want to expose:
services:
my-service:
image: example/my-service:latest
networks:
- cloudflare-exposed
networks:
cloudflare-exposed:
external: true