A Docker image designed to expose your local docker-services towards Cloudflare Connect (former Cloudflare Argo).
This will allow exposure of local ressources through Cloudflare without using your certificates. For example in Zero-Trust environments or mass-deployment.
All settings regarding the Ingress-Controller can be found in /config/config.yml.
- registered domain on cloudflare (free)
- config.yml
- .json-Tunnel Credentials
You need to generate your cloudflared-tunnel outside of this docker-container first, before you can use this.
!RUN THIS OUTSIDE THE DOCKER-CONTAINER!
Download and Install Cloudflared (dpkg -i cloudflared-linux-amd64.deb):
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation
Login to Cloudflare:
cloudflared login
Create Tunnel:
cloudflared tunnel create docker
cloudflared tunnel route dns docker tunnel.fulda-cloud.com
This will create your Tunnel-Credentials in ~/.cloudflared/.
Copy only the json-file into the config-folder, do not touch the cert (.pem)!
Use the predefined VS-Code Task or run:
docker build -t cloudflare-connect:1.00 .
docker-compose up -d
2024.3.0
MIT