Dataloss on restart
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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