Skip to content

cloudflared/cloudflared with healthcheck

Notifications You must be signed in to change notification settings

Miladiir/cloudflared-wget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Healthcheck ready cloudflared

Use the integrated healthcheck located at /bin/docker-healthcheck.sh to check the metrics /ready endpoint.

This increases image size by a lot unfortunately. I couldn't get busybox wget to work inside the cloudflared image by itself, so I opted to copy the cloudflared binary into busybox instead. This also increases the attack surface of the container, which is not ideal.

Things to note:

  • Rebuild as soon as upstream pushes new changes.
  • I don't provide semver since it would be a hassle to track cloudflares versioning (yyyy-mm-patch). Grab :latest and pin the image version with sha hash for poor mans versioning.

Example docker-compose.yml

---
services:
  cloudflared:
    image: ghcr.io/miladiir/cloudflared-wget:latest
    environment:
      - TUNNEL_TOKEN=${TUNNEL_TOKEN}
    command: tunnel --no-autoupdate run
    restart: unless-stopped

About

cloudflared/cloudflared with healthcheck

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages