Skip to content

Commit

Permalink
[IMP] Odoo 15.0-16.0: Add support for docker healthcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
amh-mw committed Nov 2, 2022
1 parent 7f37c55 commit 52e3b41
Show file tree
Hide file tree
Showing 2 changed files with 2 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 && curl --fail http://localhost:8072/longpolling/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 @@ -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 && curl --fail http://localhost:8072/websocket/health || exit 1

# Set the default config file
ENV ODOO_RC /etc/odoo/odoo.conf
Expand Down

0 comments on commit 52e3b41

Please sign in to comment.