Quickly Set Up Odoo 18 in Docker: Install in Under 1 Minute
Create Development and Production Environments for Odoo 18 (2024 Release) Using Docker Compose on Ubuntu
Please install Docker and Docker-Compose before walking through this tutorial.
Containers in docker-compose.yml:
- odoo:18.0
- postgres:17
Github Odoo 18 Docker Compose
Github: https://github.com/minhng92/odoo-18-docker-compose
Star my repository if it helps. Thank you.
Installing Odoo 18
$ git clone https://github.com/minhng92/odoo-18-docker-compose
$ cd odoo-18-docker-compose
$ sudo chmod -R 777 addons && sudo chmod -R 777 etc && mkdir -p postgresql && sudo chmod -R 777 postgresql
$ 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
$ docker-compose up -d
Open localhost:10018
to access Odoo 18. Database password: minhng.info (change it @ etc/odoo.conf)
Quick command to setup Odoo 18
curl -s https://raw.githubusercontent.com/minhng92/odoo-18-docker-compose/master/run.sh | sudo bash -s odoo-one 10018 20018
In the above command, a few parameters:
- odoo-one: target folder on local machine
- 10018: Odoo port
- 20018: chat port
Odoo posts:
- Docker Compose for Odoo 10
- Docker Compose for Odoo 11
- Docker Compose for Odoo 12
- Docker Compose for Odoo 13
- Docker Compose for Odoo 14
- Docker Compose for Odoo 15
- Docker Compose for Odoo 16
- Docker Compose for Odoo 17
- Docker Compose for Odoo 18
- Minh fanpage: https://www.facebook.com/minhng.info
- Odoo group: https://www.facebook.com/groups/odoo-dev
Khám phá Odoo