Sign inSign up

jakejarvis/cloudflare-argo

By jakejarvis

•Updated almost 5 years ago

An intermediary between Cloudflare's Argo tunneling service and your local containers/network.

Image
4

100K+

jakejarvis/cloudflare-argo repository overview

⁠docker-cloudflare-argo

CI Docker Pulls

A Docker image designed to be an intermediary between your local containers (or anything on your local network) and Cloudflare's Argo tunneling service⁠.

(AKA: A fantastic way to avoid exposing your containers and your host to the scary, scary world.)

⁠Prerequisites

Registration for Argo is done through the Cloudflare dashboard⁠ (it currently costs $5/month).

And, for now, a certificate file (.pem) needs to be obtained via cloudflared tunnel login⁠ before using the container. This can be done on any computer.

⁠Configuration

The following environment variables are required:

  • TUNNEL_HOSTNAME: The hostname/subdomain of the public-facing zone registered with Cloudflare
  • TUNNEL_URL: The backend URL server you want to dig the tunnel to, probably on your local/Docker network

...and your .pem file (the login certificate from Cloudflare) needs to be mounted to /etc/cloudflared/cert.pem on the Argo container, as shown in the example.

⁠Usage

docker run -d \
           -e "TUNNEL_HOSTNAME=mytunnel.jarv.is" \
           -e "TUNNEL_URL=http://localhost:8080" \
           -v "/Users/jake/config/cert.pem:/etc/cloudflared/cert.pem" \
           jakejarvis/cloudflare-argo:latest

Tag summary

Content type

Image

Digest

Size

44 MB

Last updated

almost 5 years ago

docker pull jakejarvis/cloudflare-argo