Skip to content

Commit

Permalink
[IMP] Odoo 15.0-17.0: Add support for docker healthcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
amh-mw committed Nov 29, 2023
1 parent c8eeb99 commit 6154c6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions 15.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions 16.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions 17.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6154c6c

Please sign in to comment.