Installing Odoo 15 with one command.
(Supports multiple Odoo instances on one server)
Install docker and docker-compose yourself, then run:
curl -s https://raw.githubusercontent.com/minhng92/odoo-15-docker-compose/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/minhng92/odoo-15-docker-compose/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:
If curl
is not found, install it:
$ sudo apt-get install curl
# or
$ sudo yum install curl
Start the container:
docker-compose up
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/minhng92/odoo-15-docker-compose
$ 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
The addons/ folder contains custom addons. Just put your custom addons if you have any.
minhng.info
, please change it @ etc/odoo.conf#L60Run Odoo:
docker-compose up -d
Restart Odoo:
docker-compose restart
Stop Odoo:
docker-compose down
In docker-compose.yml#L21, we exposed port 20015 for live-chat on host.
Configuring nginx to activate live chat feature (in production):
#...
server {
#...
location /longpolling/ {
proxy_pass http://0.0.0.0:20015/longpolling/;
}
#...
}
#...
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。