Code Monkey home page Code Monkey logo

docker-odoo's Introduction

Trustcode - Oficial docker image for Odoo

How do use this docker image ?

tldr; Minimal command to run this image

▶ docker run --name odoo --net host -d -e PG_USER=odoo -e PG_PASSWORD=odoo trustcode/docker-odoo:11.0

Other parameters:

  • PG_HOST=localhost
  • PG_PORT=5432
  • PG_USER=odoo
  • PG_PASSWORD=odoo
  • PORT=8069
  • LONGPOLLING_PORT=8072
  • WORKERS=3
  • ODOO_PASSWORD=senha_admin
  • DISABLE_LOGFILE=0
  • ODOO_ENTERPRISE=1
  • TRUSTCODE_ENTERPRISE=1
  • ODOO_VERSION=11.0

Example: Switching the port on which Odoo will listen to:

▶ docker run --name odoo --net host -d -e PG_USER=odoo -e PG_PASSWORD=odoo -e PORT=8050 trustcode/docker-odoo:11.0

Preferred way:

Install docker-compose to manage docker containers.

Create a docker-compose file following this example:

version: '3'
services:
  odoo-update:
    image: trustcode/docker-odoo:11.0
    network_mode: host
    volumes:
      - ~/.ssh:/home/temp/.ssh
      - ~/dados:/opt/dados
    environment:
      PG_USER: postgres_user
      PG_PASSWORD: 123
      ODOO_VERSION: 11.0
      ODOO_ENTERPRISE: 1
      TRUSTCODE_ENTERPRISE: 1
      DATABASE: database
      DISABLE_LOGFILE: 1
      TIME_CPU: 600
      TIME_REAL: 720

Parameters:

  • ODOO_ENTERPRISE - download the enterprise version (it needs a valid ssh key to be mounted under /home/temp/.ssh)
  • TRUSTCODE_ENTERPRISE - download private modules from Trustcode
  • DATABASE - optional database name (required if you use autoupdate command when run the image)
  • DISABLE_LOGFILE - disable odoo logs to a file, instead output to standard (useful with autoupdate)
  • TIME_CPU - cpu limit before timeout
  • TIME_REAL - real limit before timeout

Change the parameters as you want and run:

▶ docker-compose up

Updating the Odoo instance

Download the latest version of this docker image and follow below. We run daily builds of this image, it's safer to run this process in your Odoo instance at same periodicity.

If you want to update your Odoo instance just add to your docker-compose file the following command:

    image: trustcode/docker-odoo:11.0
    command: autoupdate
    network_mode: host

But before run this you should install the module "module_auto_update", without the module installed in the database the above command will not update Odoo. More info on the module.

Using for development and testing:

Download this repository, change the environment variables in docker-compose.yml and run:

▶ docker-compose build && docker-compose up

Docker Repository on Quay

Trustcode Sistemas Empresariais

Trustcode

docker-odoo's People

Contributors

danimaribeiro avatar marinagd avatar felipepaloschi 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.