Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4131 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 20
11815
2
led 25
3934
1
čvn 21
3191
1
úno 24
1247
1
kvě 22
7104