-
Git
-
A local copy of the vdx-vn/odoo-docker-compose repository
-
Copy custom addons to the folder custom-addons/
-
Create a configuration file named odoo.conf in the folder etc/
you can reference to the sample config file -
Create a file named password.txt in the postgresql/ folder to securely store the DB password
-
Run Odoo
cd $ODOO_DOCKER_PATH docker compose up -d
-
Access your Odoo instance at http://localhost
-
(Optionally) Add extra Python libraries to the requirements.txt file
-
(Optionally) Edit Dockerfile to add extra system libraries
-
(Optionally) Setup log rotatation (on host machine)
cd $ODOO_DOCKER_PATH/scripts sudo /bin/bash setup-logrotate.sh
-
(Optionally) To run Odoo with extra commands, add the command param to the etc/odoo.conf file
-
For instance:
-
Update config file
... command = -d odoo_db -i stock -u sale_management
-
Restart services
docker compose restart
-
docker exec <odoo_container_name_or_id> odoo populate --models res.partner,product.product --size medium -c /etc/odoo/odoo.conf
- run postgresql by docker
docker run --name postgresql-15 -p 5432:5432 \
-e POSTGRES_USER=admin \
-e POSTGRES_PASSWORD=admin \
-e POSTGRES_DB=postgresdb \
-d --restart unless-stopped \
postgres:15
-
Run multiple docker compose with the same config in the same folder name, the new one will override the others,
** Solution:
Specify a project name for each docker compose file to diffentiate them
-
If you run docker compose in Windows and got problem
entrypoint.sh file not found
** Solution: