diff --git a/ansible/casdoor/docker-compose.yml.j2 b/ansible/casdoor/docker-compose.yml.j2 index f343b7f..e7bcd70 100644 --- a/ansible/casdoor/docker-compose.yml.j2 +++ b/ansible/casdoor/docker-compose.yml.j2 @@ -27,7 +27,10 @@ services: tag: "casdoor" restart: unless-stopped healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:{{ casdoor_port }}/api/health"] + # curl is installed in the casbin/casdoor image (see upstream Dockerfile); + # wget is not guaranteed to be present, and BusyBox wget --spider behaves + # inconsistently. Use `curl -f` per ouranos.md standards. + test: ["CMD", "curl", "-f", "http://localhost:{{ casdoor_port }}/api/health"] interval: 30s timeout: 10s retries: 3