Image docker for expose local services to the internet using Cloudflare like a reverse proxy.
878
IMPORTANT: Starting from version 2201.8.x of the official Cloudflared docker distribution, multiple processor architecture is supported. As a result, this repository is now archived.
Image docker for expose local services to the internet using Cloudflare like a reverse proxy.
DISCLAIMER: Why do you need use this image if you can use the official one? Well, the official image is not thinked to multiple processor architecture. So, this image is designed to work with amd64 and arm64 architectures.
docker run -d --name cloudflared -v /path/to/tunnel/config:/root/.cloudflared lpsouza/cloudflared
The volume /path/to/tunnel/config is where the configuration file config.yaml and the json certification file are stored.
The file config.yaml must be created manually. And the SERVICE_URL is the url of the service that will be exposed to the internet and the TUNNEL_ID is the id of the tunnel. To get the id of the tunnel, run the tunnel creation process.
url: SERVICE_URL
tunnel: TUNNEL_ID
credentials-file: /root/.cloudflared/TUNNEL_ID.json
This json file must be created by the Cloudflare tunnel creation process.
{
"AccountTag": "",
"TunnelSecret": "",
"TunnelID": ""
}
docker run --rm -ti -v $PWD/cf:/root/.cloudflared lpsouza/cloudflared tunnel login
docker run --rm -ti -v $PWD/cf:/root/.cloudflared lpsouza/cloudflared tunnel create TUNNEL_NAME
This two commands will create a new tunnel and will store the credentials on the folder $PWD/cf in the TUNNEL_ID.json file. The TUNNEL_ID format is a GUID.
Content type
Image
Digest
sha256:2e94a8ab8…
Size
54.4 MB
Last updated
about 4 years ago
docker pull lpsouza/cloudflared