odoo / docker

Other
960 stars 1.55k forks source link

Dataloss on restart #200

Open KDederichs opened 6 years ago

KDederichs commented 6 years ago

Hey,

I want to use the docker image as development environment but sadly it seems to loose web configuration data on container restart.

I've pretty much used your default docker-compose config:

version: '3.4'
services:
  web:
    image: odoo:11.0
    depends_on:
    - db
    ports:
    - "8069:8069"
    volumes:
      - odoo-web-data:/var/lib/odoo
      - ./modules:/mnt/extra-addons:rw
  db:
    image: postgres:9.4
    environment:
    - POSTGRES_PASSWORD=odoo
    - POSTGRES_USER=odoo
    - PGDATA=/var/lib/postgresql/data/odoo_data
    volumes:
      - db-data:/var/lib/postgresql/odoo_data:rw
volumes:
  db-data: {}
  odoo-web-data: {}

Does anyone know how to fix that?

d-fence commented 4 years ago

Can you give more informations ? Do you mean that the volume "odoo-web-data:/var/lib/odoo" is not working ?

mxdev88 commented 3 years ago

I'm having the same issue when mounting volume to /var/lib/odoo. the container starts but the server does not serve any files. I suspect that the local being empty is what is causing the issue. @d-fence Any idea pls?

lathama commented 6 months ago

I would look at the examples on https://registry.hub.docker.com/_/odoo/ in detail. If this is no longer an active issue then please close.