Skip to content

Commit

Permalink
Use Odoo's default: /var/lib/odoo
Browse files Browse the repository at this point in the history
  • Loading branch information
yajo committed Jan 26, 2017
1 parent 225dde0 commit 866d2c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ MAINTAINER Tecnativa <[email protected]>

# Enable Odoo user and filestore
RUN adduser -DH odoo \
&& mkdir -p /var/run/odoo \
&& chown -R odoo:odoo /var/run/odoo
VOLUME ["/var/run/odoo"]
&& mkdir -p /var/lib/odoo \
&& chown -R odoo:odoo /var/lib/odoo
VOLUME ["/var/lib/odoo"]
EXPOSE 8069 8072

# Subimage triggers
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ Once you fixed everything needed, run it with:

docker-compose -f prod.yaml up --build

Remember that you will want to backup the filestore in `/var/lib/odoo` volume.

##### Testing

A good rule of thumb is test in testing before uploading to production, so this
Expand Down
2 changes: 1 addition & 1 deletion conf.d/00-base.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[options]
; Configuration file template that will be expanded on build
admin_passwd = $ADMIN_PASSWORD
data_dir = /var/run/odoo
data_dir = /var/lib/odoo

0 comments on commit 866d2c2

Please sign in to comment.