Persistance - 500 server error
Created originally on Bitbucket by Anonymous
Running Ubuntu 14.04 LTS, I am able to run this Docker image + xcgd/odoo successfully with the command:
sudo docker run --name="pg93" xcgd/postgresql
But when I try: sudo docker run --name="pg93" -v /home/peter/odoo/dbdata:/var/lib/postgresql -d xcgd/postgresql (where /home/peter/odoo/dbdata belongs to user peter)
or
sudo docker run --name="pg93" -v /opt/postgresql/dbdata:/var/lib/postgresql -d xcgd/postgresql (where /opt/postgresql/dbdata was created by root)
Odoo doesn't run properly; it returns a 500 server error. I thought maybe it was a permissions issue, although postgresql is creating files in the directory on the local volume.