Skip to content

vivekpatil94/Odoo-15-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick install

(Supports multiple Odoo instances on one server)

Install docker and docker-compose yourself, then run:

curl -s https://raw.githubusercontent.com/vivekpatil94/Odoo-15-Docker/master/run.sh | sudo bash -s odoo-one 10015 20015

to set up first Odoo instance @ localhost:10015 (default master password: minhng.info)

and

curl -s https://raw.githubusercontent.com/vivekpatil94/Odoo-15-Docker/master/run.sh | sudo bash -s odoo-two 11015 21015

to set up another Odoo instance @ localhost:11015 (default master password: minhng.info)

Some arguments:

  • First argument (odoo-one): Odoo deploy folder
  • Second argument (10015): Odoo port

If curl is not found, install it:

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

Usage

Start the container:

docker-compose up
  • Then open localhost:10015 to access Odoo 15.0. If you want to start the server with a different port, change 10015 to another value in docker-compose.yml:
ports:
 - "10015:8069"

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

docker-compose up -d

If you get the permission issue, change the folder permission to make sure that the container is able to access the directory:

$ git clone https://github.com/vivekpatil94/Odoo-15-Docker
$ 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. These commands are for Ubuntu user:

$ 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

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

Run Odoo:

docker-compose up -d

Restart Odoo:

docker-compose restart

Stop Odoo:

docker-compose down

docker-compose.yml

  • odoo:15.0
  • postgres:14

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published