[IMP] Odoo 15.0-17.0: Add support for docker healthcheck.

This commit is contained in:
Adam Heinz 2022-11-02 13:22:43 -04:00
parent c8eeb99e72
commit 6154c6c9db
3 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# Expose Odoo services # Expose Odoo services
EXPOSE 8069 8071 8072 EXPOSE 8069 8071 8072
HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1
# Set the default config file # Set the default config file
ENV ODOO_RC /etc/odoo/odoo.conf ENV ODOO_RC /etc/odoo/odoo.conf

View File

@ -89,6 +89,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# Expose Odoo services # Expose Odoo services
EXPOSE 8069 8071 8072 EXPOSE 8069 8071 8072
HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1
# Set the default config file # Set the default config file
ENV ODOO_RC /etc/odoo/odoo.conf ENV ODOO_RC /etc/odoo/odoo.conf

View File

@ -91,6 +91,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# Expose Odoo services # Expose Odoo services
EXPOSE 8069 8071 8072 EXPOSE 8069 8071 8072
HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1
# Set the default config file # Set the default config file
ENV ODOO_RC /etc/odoo/odoo.conf ENV ODOO_RC /etc/odoo/odoo.conf