Added Docker healthcheck for /10.0

This commit is contained in:
Mike Mugge 2017-07-17 11:35:17 -06:00
parent f8af1a80b1
commit 60869627fe

View File

@ -42,6 +42,9 @@ RUN mkdir -p /mnt/extra-addons \
&& chown -R odoo /mnt/extra-addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# the Docker healthcheck command
HEALTHCHECK CMD curl --fail http://localhost:8069/web/database/selector || exit 1
# Expose Odoo services
EXPOSE 8069 8071