Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4121 Weergaven

Using Ubuntu 20.04.1. Latest docker images for odoo and postgres.

I run postgres in a separate container.


This code run fine:

sudo docker run -v $HOME/docker_data/odoo/etc/odoo:/etc/odoo -p 8069:8069 --name odoo --link postgres:postgres -t odoo


The above only have -v pointing to the location of odoo.conf file. 


BUT, to save the product images uploaded, I believe I need to also map docker container /var/lib/odoo to the host. So now I have this:

sudo docker run -v $HOME/docker_data/odoo/etc/odoo:/etc/odoo -v $HOME/docker_data/odoo/var/lib/odoo:/var/lib/odoo -p 8069:8069 --name odoo --link postgres:postgres -t odoo


Docker will run, but will get stuck at:

odoo.service.server: HTTP service (werkzeug) running on xxxx:8069

Then, if I try to access the webpage, the docker log will show:

odoo.http: HTTP Configuring static files 

And it just stuck there forever. I have checked to make sure $HOME/docker_data/odoo/var/lib/odoo directory exists on the host machine.


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 20
11803
2
jan. 25
3928
1
jun. 21
3191
1
feb. 24
1243
1
mei 22
7097