qoomon / docker-host

A docker sidecar container to forward all traffic to local docker host or any other host
MIT License
1.09k stars 88 forks source link

docker-compose keep a healthcheck #65

Open leandross-picpay opened 1 month ago

leandross-picpay commented 1 month ago

There's a check to keep health on pod ?

qoomon commented 1 month ago

Not so far, what would be a good healthcheck command? I'd add it then.

qoomon commented 1 month ago

I think it is not possible to have a healthcheck of iptables because iptables is not a daemon or service that runs in the background; instead, it is a tool for configuring the kernel’s packet filtering rules. Once the rules are set up, the packet filtering is handled by the Linux kernel itself.

qoomon commented 1 month ago

That means as long as the container is running it is healthy by definition :-)

Do you have a special use case? Or is it okay to have no healthcheck is this case?