diff --git a/build/nginx/configuration/nginx-default.conf b/build/nginx/configuration/nginx-default.conf index 3f027d68c9235a53156c3b4cae54fa8b3d221268..ff82b0f32db905b3e180c9f09a6d976c17293817 100644 --- a/build/nginx/configuration/nginx-default.conf +++ b/build/nginx/configuration/nginx-default.conf @@ -11,6 +11,11 @@ server { try_files $uri $uri/ /index.php?$query_string; } + location /health-check/nginx { + access_log off; + return 200 "healthy\n"; + } + location ~ \.php$ { try_files $uri /index.php =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; diff --git a/docker-compose.yml b/docker-compose.yml index 7429a16fc9ee16b7258e26dbe3f7dbd738fa1dc4..5e2e2d7b452888fbe2eec3f59dac277b31b7a0d8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,7 +31,7 @@ services: ports: - 8080:8080 healthcheck: - test: "curl -f http://nginx:8080/health-check/liveness" + test: "curl -f http://nginx:8080/health-check/nginx" scheduler: build: <<: *fpm_build