-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Priority: NormalMinor issue impacting one or more usersMinor issue impacting one or more usersType: Feature RequestA big idea that would be split into smaller piecesA big idea that would be split into smaller pieces
Description
Describe the feature you'd like
I would like the docker image to contain curl or wget so it's possible to create a docker healthcheck that docker-compose or docker swarm can use.
It would be nice the healthchecking is just native to the cloudflare/cloudflared image like so.
FROM cloudflare/cloudflared:2023.10.0 as cloudflared
FROM alpine:3.18.4
COPY --from=cloudflared /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=cloudflared /usr/local/bin/cloudflared /usr/local/bin
ENV TUNNEL_METRICS="localhost:2000"
HEALTHCHECK --interval=5s --retries=6 --timeout=3s CMD wget -q ${TUNNEL_METRICS}/ready -O -If building from alpine is something you don't want to do, then provide a cloudflare tunnel health command that can be used like so
HEALTHCHECK --interval=5s --retries=6 --timeout=3s CMD cloudflare tunnel health --ready-endpoint localhost:2000/readyor like so
services:
cloudflared:
image: cloudflare/cloudflared
environment:
TUNNEL_METRICS: "localhost:2000"
healthcheck:
command: cloudflared tunnel health --ready-endpoint ${TUNNEL_METRICS}/ready
interval: 5s
retries: 6
timeout: 3sDescribe alternatives you've considered
Build my own image built on-top of the cloudflare/cloudflared image or use third-party images built on top of cloudflare's
rblaine95, DavidPesticcio, saschabrockel, harrytheeskimo, jasonyang-ee and 13 moremordilloSan, jasonyang-ee and danialkeimasi
Metadata
Metadata
Assignees
Labels
Priority: NormalMinor issue impacting one or more usersMinor issue impacting one or more usersType: Feature RequestA big idea that would be split into smaller piecesA big idea that would be split into smaller pieces