Skip to content

misern2/odoo-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this Repo

This is a fork of the official Docker image git repo for hibou/odoo.

This repo is automatically built on Docker Hub as qubiq/odoo-docker.

Additional information and command line options can be found at Odoo

Update date: 2018-03-03

Goals

  • Provide as close to a 'drop in replacement' of the Official Docker image as possible. (from a usability standpoint, e.g. creating the odoo user with the same uid number)
  • Provide newer versions of node, NPM and LESS (less bugs, better perf.)
  • Provide newer Python and Python packages. (less bugs, better perf.)
  • Provide optional Python packages to enable missing Odoo features (flanker email validation, workers>0 support)
  • Provide newer Postgres bindings to support backing up on Postgres > 9.4
  • Provide a better developer and benchmarking suite (newrelic and watchdog)sourcetree
  • Provide additional custom addon mount point
  • Provide debugger libreries (pdb,pudb,wdb )

How to use this image

This image requires a running PostgreSQL server.

Start a PostgreSQL server

According Odoo version:

8.0

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres:9.4

9.0

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db9 postgres:9.4

10.0

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db10 postgres:9.4

11.0

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db11 postgres:9.4

Start an Odoo instance

According Odoo version:

8.0

docker run -p 8069:8069 --name odoo8 --link db:db -t qubiq/odoo-docker:8.0

9.0

docker run -p 8069:8069 --name odoo9 --link db9:db9 -t qubiq/odoo-docker:9.0

10.0

docker run -p 8069:8069 --name odoo10 --link db10:db10 -t qubiq/odoo-docker:10.0

11.0

docker run -p 8069:8069 --name odoo11 --link db11:db11 -t qubiq/odoo-docker:11.0

Using docker-compose

Example of docker-compose.yml to run odoo, bd and debugger:

version: '2'
services:
  odoo:
      image: qubiq/odoo-docker:10.0
      depends_on:
        - db
        - wdb
      volumes:
        - "filestore_v10:/var/lib/odoo"
        - ./docker_files/config:/etc/odoo
        - ./addons/custom:/mnt/custom-addons
        - ./addons/common:/mnt/extra-addons


      ports:
        - "8069:8069"
      environment:
        - DB10_PORT_5432_TCP_ADDR=db
        - DB10_ENV_POSTGRES_USER=odoo
        - DB10_ENV_POSTGRES_PASSWORD=odoo

  db:
      image: postgres:9.4
      environment:
        - POSTGRES_PASSWORD=odoo
        - POSTGRES_USER=odoo
        - PGDATA=/var/lib/postgresql/data/pgdata

      volumes:
        - "odoo-db-data_v10:/var/lib/postgresql/data/pgdata"

      environment:
        - POSTGRES_PASSWORD=odoo
        - POSTGRES_USER=odoo
        - PGDATA=/var/lib/postgresql/data/pgdata

  wdb:
      image: yajo/wdb-server
      ports:
        - "1984:1984"

volumes:
  filestore_v10:
  odoo-db-data_v10:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%