We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9400956 commit c3af913Copy full SHA for c3af913
2 files changed
Dockerfile
@@ -116,6 +116,8 @@ RUN sed -i "s/nginx:x:100:101:nginx:\/var\/lib\/nginx:\/sbin\/nologin/nginx:x:10
116
117
EXPOSE 80
118
119
+HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 CMD curl -fsS http://127.0.0.1/health || exit 1
120
+
121
VOLUME ["/DATA"]
122
123
CMD ["/usr/bin/s6-svscan", "/etc/s6"]
rootfs/etc/nginx/host.conf
@@ -5,6 +5,13 @@ index index.html index.htm;
5
6
disable_symlinks off;
7
8
+# Simple health endpoint always returns 200 OK
9
+location = /health {
10
+ access_log off;
11
+ default_type text/plain;
12
+ return 200 'OK';
13
+}
14
15
location / {
16
try_files $uri $uri/;
17
}
0 commit comments