[IMP] Add new volume to mount logs folder from the host
This commit is contained in:
parent
282f5a3761
commit
ea0314041f
@ -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
|
# 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 \
|
RUN chown odoo /etc/odoo/odoo.conf \
|
||||||
&& mkdir -p /mnt/extra-addons \
|
&& mkdir -p /mnt/extra-addons \
|
||||||
&& chown -R odoo /mnt/extra-addons
|
&& chown -R odoo /mnt/extra-addons \
|
||||||
VOLUME ["/var/lib/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 Odoo services
|
||||||
EXPOSE 8069 8071 8072
|
EXPOSE 8069 8071 8072
|
||||||
|
@ -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
|
# 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 \
|
RUN chown odoo /etc/odoo/odoo.conf \
|
||||||
&& mkdir -p /mnt/extra-addons \
|
&& mkdir -p /mnt/extra-addons \
|
||||||
&& chown -R odoo /mnt/extra-addons
|
&& chown -R odoo /mnt/extra-addons \
|
||||||
VOLUME ["/var/lib/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 Odoo services
|
||||||
EXPOSE 8069 8071 8072
|
EXPOSE 8069 8071 8072
|
||||||
|
@ -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
|
# 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 \
|
RUN chown odoo /etc/odoo/odoo.conf \
|
||||||
&& mkdir -p /mnt/extra-addons \
|
&& mkdir -p /mnt/extra-addons \
|
||||||
&& chown -R odoo /mnt/extra-addons
|
&& chown -R odoo /mnt/extra-addons \
|
||||||
VOLUME ["/var/lib/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 Odoo services
|
||||||
EXPOSE 8069 8071 8072
|
EXPOSE 8069 8071 8072
|
||||||
|
Loading…
Reference in New Issue
Block a user