From f396179681e2e90f62025d701de283db858fc79f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 4 Apr 2024 13:00:06 +0200 Subject: [PATCH] Added comments how to implement health check --- roles/docker-moodle/templates/docker-compose.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/docker-moodle/templates/docker-compose.yml.j2 b/roles/docker-moodle/templates/docker-compose.yml.j2 index 3efdf4ca..9edc84ea 100644 --- a/roles/docker-moodle/templates/docker-compose.yml.j2 +++ b/roles/docker-moodle/templates/docker-compose.yml.j2 @@ -25,6 +25,12 @@ services: volumes: - 'moodle:/bitnami/moodle' - 'data:/bitnami/moodledata' +# Healthcheck is not possible due to missing curl and wget in container +# healthcheck: +# test: ["CMD", "curl", "-f", "http://127.0.0.1:8080"] +# interval: 1m +# timeout: 10s +# retries: 3 {% include 'templates/docker/container/depends-on-just-database.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}