diff --git a/compose.yaml b/compose.yaml index 5cd1eba..12d9626 100644 --- a/compose.yaml +++ b/compose.yaml @@ -9,7 +9,7 @@ services: - "./dist:/usr/share/nginx/html:ro" - "./nginx.conf:/etc/nginx/nginx.conf" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost"] + test: ["CMD", "curl", "-f", "http://localhost/health"] interval: 30s timeout: 10s retries: 5 diff --git a/nginx.conf b/nginx.conf index 2233d41..1d09286 100644 --- a/nginx.conf +++ b/nginx.conf @@ -46,6 +46,11 @@ http { index index.html index.htm; } + location /health { + add_header Content-Type text/plain; + return 200 "OK"; + } + #error_page 404 /404.html;