This is a simple docker compose file built by Amr for faster building of odoo instances i hope its useful for someone good luck.
- Create a folder anywhere in your computer and name it ex. "odoo18".
- Open the "odoo18" Folder.
- Create file named odoo_pg_pass in the "odoo18" folder and put the password for odoo and postgres inside it.
- Create .env file from the sample in the "odoo18" folder. (It will be hidden when you create it so just unhide)
- Open the terminal in the "odoo18" folder.
- Run this command in the terminal "docker compose up -d" to create and run the continers.
- 2 Folders will be created automaticly
- "custom_addons" you can put your custom addons or enterprise addons in this folder
- "config" you can put your custom odoo.conf file in this folder
- Run this command in terminal "docker compose down" to remove the continers after you make updates to the yaml
- Run this command in terminal "docker compose up -d" to create and run the containers
- Uncomment the "command" line in the yaml file in line 4 and replace the database_name with the database you are using and the right the module_name you want to upgrade with every restart of the odoo container