odoo / odoo/docker

Dataloss on restart

Open
#200 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
1.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied docker-compose configuration, especially the web and db volume mappings and the /var/lib/odoo and PostgreSQL data paths. Reproduce a restart with the Odoo 11.0 and postgres:9.4 images, trace where web configuration is stored, and verify that the configuration remains after the container restarts.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, postgresql
Domain
databases, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.