This project provides a Docker Compose setup to deploy Odoo 16.0 with a PostgreSQL 15 backend. It uses Docker secrets to manage the PostgreSQL password securely.
-
Clone the Repository or Fork
git clone [your-repo-url] my-odoo-project cd my-odoo-project
Replace
[your-repo-url]
with the URL of your Git repository. -
Set Up the PostgreSQL Password
First, you need to set a secure password for the PostgreSQL database:
echo "your_secure_password" > odoo_pg_pass
Remember to replace
your_secure_password
with a strong, secure password. -
Run the Project
Now, you can start the project using Docker Compose:
docker-compose up -d
This will pull the necessary Docker images and start the Odoo and PostgreSQL services.
-
Access Odoo
Once the services are running, you can access the Odoo instance by navigating to:
http://localhost:8069
If you have custom or additional modules/addons for Odoo, place them in the addons/
directory. Each module should have its own sub-directory containing its files and assets.
-
Odoo configurations can be adjusted in the
config/
directory, specifically within theodoo.conf
file if you have one. -
The PostgreSQL 520C password is managed as a Docker secret, sourced from the
odoo_pg_pass
file.
To stop the services and remove the containers, you can use:
docker-compose down
Feel free to raise issues or provide feedback. Contributions to this project are welcome!