GithubHelp home page GithubHelp logo

myrconsulting / odoo-13-docker-compose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minhng92/odoo-13-docker-compose

0.0 1.0 0.0 517 KB

Quickly set-up Odoo 13 dev environment with docker compose

Shell 100.00%

odoo-13-docker-compose's Introduction

Installing Odoo 13 with one command

(Supports multiple Odoo instances on one server)

Install docker and docker-compose yourself, then run:

# 1st Odoo @ localhost:10013
$ curl -s https://raw.githubusercontent.com/minhng92/odoo-13-docker-compose/master/run.sh | sudo bash -s odoo-13-docker-compose-one 10013

# 2nd Odoo @ localhost:11013
$ curl -s https://raw.githubusercontent.com/minhng92/odoo-13-docker-compose/master/run.sh | sudo bash -s odoo-13-docker-compose-two 11013

Some arguments:

  • First argument (odoo-13-docker-compose-one): Odoo deploy folder
  • Second argument (10013): Odoo port

If curl is not found, install it:

$ sudo apt-get install curl
# or
$ sudo yum install curl

Usage

Change the folder permission to make sure that the container is able to access the directories:

$ sudo chmod -R 777 addons
$ sudo chmod -R 777 etc
$ mkdir -p postgresql
$ sudo chmod -R 777 postgresql

Increase maximum number of files watching from 8192 (default) to 524288. In order to avoid error when we run multiple Odoo instances. This is an optional step:

$ if grep -qF "fs.inotify.max_user_watches" /etc/sysctl.conf; then echo $(grep -F "fs.inotify.max_user_watches" /etc/sysctl.conf); else echo "fs.inotify.max_user_watches = 524288" | sudo tee -a /etc/sysctl.conf; fi
$ sudo sysctl -p    # apply new config immediately

Start the container:

$ docker-compose up

Then open localhost:10013 to access Odoo 13.0. If you want to start the server with a different port, change 10013 to another value in docker-compose.yml:

ports:
 - "10013:8069"

Run Odoo container in detached mode (be able to close terminal without stopping Odoo):

$ docker-compose up -d

Custom addons

The addons/ folder contains custom addons. Just put your custom addons if you have any.

Odoo configuration & log

  • To change Odoo configuration, edit file: etc/odoo.conf
  • Log file: etc/odoo-server.log

Odoo container management

Restart Odoo:

$ docker-compose restart

Kill Odoo:

$ docker-compose down

Remove Odoo & data

Completely remove Odoo and all databases!

$ sh remove_odoo.sh

docker-compose.yml

  • odoo:13.0
  • postgres:11

Odoo 13 screenshots

odoo-13-welcome-docker

odoo-13-apps-docker

odoo-13-sales

odoo-13-form

odoo-13-docker-compose's People

Contributors

minhng92 avatar

Watchers

James Cloos 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.