Code Monkey home page Code Monkey logo

docker-compose-odoo's Introduction

Docker Compose Odoo 14

Start Odoo instance with docker

To start an Odoo instance, please perform the following steps:

  1. Pull this repo
  2. Pull enterprise addons
  3. Configure the path to enterprise addons
  4. Run docker-compose up
  5. Run chmod 777 -R etc to grant permissions
  6. Restart odoo using docker-compose restart odoo14 (replace odoo14 with the service name)
  7. Happy coding!

If logfile is enabled in odoo.conf, use this command to print the log (adapt the path to log file accordingly)

tail -fn 500 etc/odoo-server.log

Start Odoo when running VSCode inside container

To allow VSCode to run inside the container, you need to have Python setup inside the container (after start VSCode in container, go to extension and find Python). After that, you need to setup launch.json as follows

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Odoo",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "python": "/usr/bin/python3",
            "program": "/usr/bin/odoo",
            "args": [
                "--db_host=db",
                "--db_port=5432",
                "--db_password=odoo",
            ],
            "cwd": "${workspaceFolder}",
            "console": "integratedTerminal",
        }
    ]
}

After that, just run the container from the debug menu and happy coding!

docker-compose-odoo's People

Contributors

ryantran-novobi avatar

Watchers

 avatar

Forkers

baoly-novobi

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.