Add a Docker health check

Closes #6
This commit is contained in:
Yannik Rödel 2022-05-11 18:11:39 +02:00
parent 8bd6697de2
commit d7ef3f06d9

View file

@ -68,6 +68,12 @@
${pkgs.coreutils}/bin/mkdir -p /var/tmp
${pkgs.lighttpd}/bin/lighttpd -Df ${packages.lighttpdConfig}
'') ];
Healthcheck = {
Test = [ "${pkgs.curl}/bin/curl" "--fail" "localhost" ];
Interval = 30000000000; # 30 seconds
Timeout = 10000000000; # 10 seconds
Retries = 3;
};
};
};