diff --git a/app/client/Dockerfile b/app/client/Dockerfile index 7c0e932de1..9ca0d85d0b 100644 --- a/app/client/Dockerfile +++ b/app/client/Dockerfile @@ -1,3 +1,4 @@ + FROM nginx:1.20-alpine COPY ./build /var/www/appsmith @@ -16,5 +17,5 @@ COPY ./docker/templates/nginx-app-https.conf.template /nginx-app-https.conf.temp # This is the script that is used to start Nginx when the Docker container starts COPY ./docker/start-nginx.sh /start-nginx.sh -HEALTHCHECK --interval=15s --timeout=15s --start-period=15s --retries=3 CMD curl -f http://localhost:80/ || exit 1 +HEALTHCHECK --interval=15s --timeout=15s --start-period=15s --retries=3 CMD curl -Lfk http://localhost/ || exit 1 CMD ["/start-nginx.sh"] diff --git a/deploy/docker/scripts/healthcheck.sh b/deploy/docker/scripts/healthcheck.sh index 2678b8458e..5cb1d013b1 100644 --- a/deploy/docker/scripts/healthcheck.sh +++ b/deploy/docker/scripts/healthcheck.sh @@ -11,9 +11,9 @@ while read -r line else echo "PROCESS: $process - STATUS: $status" if [[ "$process" == 'editor' ]]; then - if [[ $(curl -s -w "%{http_code}\n" http://localhost:80/ -o /dev/null) -ne 200 ]]; then - echo 'ERROR: Editor is down'; - healthy=false + if [[ $(curl -Lfk -s -w "%{http_code}\n" http://localhost/ -o /dev/null) -ne 200 ]]; then + echo 'ERROR: Editor is down'; + healthy=false fi elif [[ "$process" == "server" ]]; then if [[ $(curl -s -w "%{http_code}\n" http://localhost:8080/api/v1/users/me/ -o /dev/null) -ne 200 ]]; then