Skip to content

Commit 52e3b41

Browse files
committed
[IMP] Odoo 15.0-16.0: Add support for docker healthcheck.
1 parent 7f37c55 commit 52e3b41

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

15.0/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
7575

7676
# Expose Odoo services
7777
EXPOSE 8069 8071 8072
78+
HEALTHCHECK CMD curl --fail http://localhost:8069/web/health && curl --fail http://localhost:8072/longpolling/health || exit 1
7879

7980
# Set the default config file
8081
ENV ODOO_RC /etc/odoo/odoo.conf

16.0/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
7575

7676
# Expose Odoo services
7777
EXPOSE 8069 8071 8072
78+
HEALTHCHECK CMD curl --fail http://localhost:8069/web/health && curl --fail http://localhost:8072/websocket/health || exit 1
7879

7980
# Set the default config file
8081
ENV ODOO_RC /etc/odoo/odoo.conf

0 commit comments

Comments
 (0)