Skip to content

Commit 6154c6c

Browse files
committed
[IMP] Odoo 15.0-17.0: Add support for docker healthcheck.
1 parent c8eeb99 commit 6154c6c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

15.0/Dockerfile

Lines changed: 1 addition & 0 deletions
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 || exit 1
7879

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

16.0/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
8989

9090
# Expose Odoo services
9191
EXPOSE 8069 8071 8072
92+
HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1
9293

9394
# Set the default config file
9495
ENV ODOO_RC /etc/odoo/odoo.conf

17.0/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
9191

9292
# Expose Odoo services
9393
EXPOSE 8069 8071 8072
94+
HEALTHCHECK CMD curl --fail http://localhost:8069/web/health || exit 1
9495

9596
# Set the default config file
9697
ENV ODOO_RC /etc/odoo/odoo.conf

0 commit comments

Comments
 (0)