[IMP] Add new volume to mount logs folder from the host

This commit is contained in:
micheledic 2024-10-11 20:39:14 +02:00 committed by GitHub
parent 282f5a3761
commit ea0314041f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 6 deletions

View File

@ -84,8 +84,10 @@ COPY ./odoo.conf /etc/odoo/
# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \
&& chown -R odoo /mnt/extra-addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
&& chown -R odoo /mnt/extra-addons \
&& mkdir -p /var/log/odoo \
&& chown -R odoo /var/log/odoo
VOLUME ["/var/lib/odoo", "/mnt/extra-addons", "/var/log/odoo"]
# Expose Odoo services
EXPOSE 8069 8071 8072

View File

@ -86,8 +86,10 @@ COPY ./odoo.conf /etc/odoo/
# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \
&& chown -R odoo /mnt/extra-addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
&& chown -R odoo /mnt/extra-addons \
&& mkdir -p /var/log/odoo \
&& chown -R odoo /var/log/odoo
VOLUME ["/var/lib/odoo", "/mnt/extra-addons", "/var/log/odoo"]
# Expose Odoo services
EXPOSE 8069 8071 8072

View File

@ -86,8 +86,10 @@ COPY ./odoo.conf /etc/odoo/
# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \
&& chown -R odoo /mnt/extra-addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
&& chown -R odoo /mnt/extra-addons \
&& mkdir -p /var/log/odoo \
&& chown -R odoo /var/log/odoo
VOLUME ["/var/lib/odoo", "/mnt/extra-addons", "/var/log/odoo"]
# Expose Odoo services
EXPOSE 8069 8071 8072