ports:
- "10015:8069"
minhng.info7tf5t634#$%^
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/hophamlam/odoo.gaolamthuy.vn.git
cd odoo.gaolamthuy.vn
sudo chmod -R 777 addons
sudo chmod -R 777 etc
sudo chmod -R 777 entrypoint.sh
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.
- To change Odoo configuration, edit file: etc/odoo.conf.
- Log file: etc/odoo-server.log
- Default database password (admin_passwd) is
minhng.info
, please change it @ etc/odoo.conf#L60
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/;
}
#...
}
#...
- odoo:15.0
- postgres:14