Giter VIP home page Giter VIP logo

odoo-docker's Introduction

Odoo 8.0 Docker

This document explain how to lunch Odoo in a conteiner linked to another Postgresql container.

First of all we will need a container running Postgresql:

sudo docker run --name odoo-db -e LC_ALL=C.UTF-8 postgres

Then is necesary to see the postgres IP to connect to it and create the user odoo. To get the IP of the postgres container we can run the following command:

sudo docker inspect odoo-db | grep IPAddress
    "IPAddress": "172.17.0.42",

Once we get the IP we can connect to the database:

psql -h 172.17.0.42 -p 5432 -U postgres

and create the odoo user as follows:

CREATE USER odoo WITH PASSWORD 'odoo';
ALTER USER odoo WITH SUPERUSER;

With all this configuration we are ready to run odoo connected to the previously configured container with the following command:

sudo docker run -t -i -p 8069:8069 --link odoo-db:odoo-db damiansoriano/odoo-docker sudo -H -u odoo /opt/odoo/server/odoo.py -c /opt/odoo/server/odoo.conf

odoo-docker's People

Contributors

damiansoriano avatar

Watchers

 avatar

Forkers

shofiq5

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.