Added support for docker log collector

This commit is contained in:
Cristian 2020-12-29 09:51:26 +01:00
parent b23832c33a
commit 287ae4bf54

View File

@ -73,6 +73,9 @@ RUN chown odoo /etc/odoo/odoo.conf \
&& chown -R odoo /mnt/extra-addons && chown -R odoo /mnt/extra-addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"] VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# Forward logs to STDOUT (Docker Log collector)
RUN ln -sf /dev/stdout /var/log/odoo/odoo-server.log
# Expose Odoo services # Expose Odoo services
EXPOSE 8069 8071 8072 EXPOSE 8069 8071 8072