odoo / odoo/docker

Canno't mount and run database with Docker Composer

Open
#212 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

Hello ,
I'am trying to mount database inside volumes on docker composer and then I didn't know how to run this image Odoo with database gived on volumes.
I had already mount extra addons gived on the docker composer but canno't mount database which gived on the docker composer .

=> For more details these is my docker comopser (my database is located on my git project + docker composer )
(/dpbox_db contains the db on git project )
Docker Composer File :

version: '2'
services:
db:
image: postgres:9.5
environment:
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./dpbox_db/:/var/lib/postgresql/data
odoo11:
image: odoo:11.0
ports:
- "8076:8069"
tty: true
links:
- db
depends_on:
- db
environment:
- PGHOST=db
command: -- --dev=reload
volumes:
- ../extra_addons/:/mnt/extra-addons
- ./o_etc:/etc/odoo
volumes:
db:
odoo11:


Please Help to solve my problem thanks .

Cordially Turki Makki.

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 Docker Compose file in the issue, especially the db service's ./dpbox_db/ mount and the PGDATA setting, then run the Compose setup and inspect the database container logs. Done means the PostgreSQL service starts from the project database volume and the odoo11 service can connect to it without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, postgres
Domain
databases, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.