Code Monkey home page Code Monkey logo

odoo15-dev-docker's Introduction

Odoo 15

This docker version shows you how to:

  • mount custom addons located in ./addons
  • use a custom configuration file located in .config/odoo.conf
  • use named volumes for the Odoo and postgres data dir

To start your Odoo instance, go in the directory of the docker-compose.yml file and type:

docker-compose up -d

NB

If you are using the docker-compose up command to start your servers, then you need to add the following line to your docker-compose.yml file under the odoo service:

command: odoo -u all -d odoo-prod

Where odoo-prod is the name of your database. This overwrites the default command (which is just odoo without update) and tells docker to update all modules when the container restarts.

Alternatively, you can also run a separate container that performs the updates:

docker run -v [your volumes] odoo:10.0 odoo -u all -d odoo-prod

OR

Start a PostgreSQL server and run it

$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:13

Start an Odoo instance

$ docker run -p 8069:8069 --name odoo --link db:db -t odoo -i base

The alias of the container running Postgres must be db for Odoo to be able to connect to the Postgres server.

Stop and restart an Odoo instance

$ docker stop odoo
$ docker start -a odoo

To add a new addon module

  • Attach a shell on the running odoo container

    docker exec -ti container_name bash
  • Run the script below in the shell to create the module

    /usr/bin/odoo scaffold module_name /mnt/extra-addons

odoo15-dev-docker's People

Watchers

Bernard Kingsley Codjoe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.