From 6154c6c9db1536eb98d4ed1f421f3080ff5817cb Mon Sep 17 00:00:00 2001 From: Adam Heinz Date: Wed, 2 Nov 2022 13:22:43 -0400 Subject: [PATCH] [IMP] Odoo 15.0-17.0: Add support for docker healthcheck. --- 15.0/Dockerfile | 1 + 16.0/Dockerfile | 1 + 17.0/Dockerfile | 1 + 3 files changed, 3 insertions(+) diff --git a/15.0/Dockerfile b/15.0/Dockerfile index 262d289..080fee8 100644 --- a/15.0/Dockerfile +++ b/15.0/Dockerfile @@ -75,6 +75,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"] # Expose Odoo services EXPOSE 8069 8071 8072 +HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1 # Set the default config file ENV ODOO_RC /etc/odoo/odoo.conf diff --git a/16.0/Dockerfile b/16.0/Dockerfile index 0949ef2..d014082 100644 --- a/16.0/Dockerfile +++ b/16.0/Dockerfile @@ -89,6 +89,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"] # Expose Odoo services EXPOSE 8069 8071 8072 +HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1 # Set the default config file ENV ODOO_RC /etc/odoo/odoo.conf diff --git a/17.0/Dockerfile b/17.0/Dockerfile index ba8ba89..f40591e 100644 --- a/17.0/Dockerfile +++ b/17.0/Dockerfile @@ -91,6 +91,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"] # Expose Odoo services EXPOSE 8069 8071 8072 +HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1 # Set the default config file ENV ODOO_RC /etc/odoo/odoo.conf