Skip to content

Commit

Permalink
docker healthcheck add curl noproxy option
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Sep 4, 2023
1 parent 0e48c89 commit b665972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install/assets/docker_backend_healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

url_test=http://localhost:8000${GEONATURE_BACKEND_PREFIX}/gn_commons/config
if [ ! -f /tmp/container_healthy ]; then
curl -f "${url_test}" || exit 1
curl --noproxy localhost -f "${url_test}" || exit 1
touch /tmp/container_healthy
fi
2 changes: 1 addition & 1 deletion install/assets/docker_frontend_healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# docker healthcheck GN frontend
url_test=http://localhost:80${NGINX_LOCATION}/
if [ ! -f /tmp/container_healthy ]; then
curl -f "${url_test}" || exit 1
curl --noproxy localhost -f "${url_test}" || exit 1
touch /tmp/container_healthy
fi

0 comments on commit b665972

Please sign in to comment.