feat: add healthcheck lookup before redirect (#12)

Docker classic IsUp will return false when the container defines a healthcheck and is not healthy, otherwise as soon as it's started it's up.
Docker swarm will check that the number of required tasks is higher than 1, and that the number of running tasks matches the number of desired tasks.
A task is not running when it defines a healthcheck and is not healthy.
This commit is contained in:
Alexis Couvreur
2021-09-28 12:44:27 +02:00
committed by GitHub
parent 68732717ad
commit ebd24562b1
11 changed files with 866 additions and 95 deletions

View File

@@ -23,4 +23,4 @@ jobs:
run: go build -v .
- name: Test
run: go test -v .
run: go test -v ./...