We will install Odoo 17 the bitnami odoo package on Ubuntu
-
Text Editor - Vim , VS Code etc
-
Docker Installation:Refer to tutorial below
-
Docker Compose: Refer to Tutorial below
To install this project, follow these steps:
-
Navigate to the project directory:
mkdir Odoo17Bitnami
-
Enter into project:
cd Odoo17Bitnami -
Clone the repository:
git clone https://github.com/bitnami/containers/blob/main/bitnami/odoo/docker-compose.yml
-
Create a custom addons folder in host:
mkdir -p odoo/custom_addons
-
Update the docker-compose.yml file for the host custom_addons to point to container addons folder
volumes: - 'odoo_data:/bitnami/odoo' - '/Odoo17Bitnami/odoo/custom_addons:/opt/bitnami/odoo/custom_addons'
-
Create/Update the Docker-compose YAML file inside Odoo17Bitnami:
vim docker-compose.yml
version: '3.8' services: postgresql: image: docker.io/bitnami/postgresql:17 volumes: - 'postgresql_data:/bitnami/postgresql' environment: # ALLOW_EMPTY_PASSWORD is recommended only for development. - ALLOW_EMPTY_PASSWORD=yes - POSTGRESQL_USERNAME=bn_odoo - POSTGRESQL_DATABASE=bitnami_odoo odoo: image: docker.io/bitnami/odoo:17 ports: - '78:8069' volumes: - 'odoo_data:/bitnami/odoo' - '/home/sendowooza/Desktop/Odoo17Bitnami/odoo/custom_addons:/opt/bitnami/odoo/custom_addons' depends_on: - postgresql environment: # ALLOW_EMPTY_PASSWORD is recommended only for development. - ALLOW_EMPTY_PASSWORD=yes - ODOO_DATABASE_HOST=postgresql - ODOO_DATABASE_PORT_NUMBER=5432 - ODOO_DATABASE_USER=bn_odoo - ODOO_DATABASE_NAME=bitnami_odoo volumes: postgresql_data: driver: local odoo_data: driver: local
-
Update the odoo port to your desired
- '78:8069' -
Start Odoo docker compose :
docker-compose up -d
-
Docker will automatically pull odoo bitnami package and create the odoo and odoo postgres container as shown below
Confirm the the odoo containers are up and runningdocker ps -a
Go to the browser and open odoo with the port you specified
localhost:78As shown below
Make sure you have opened your specified port via ufw and reload
sudo ufw allow 78After installing Odoo 17 using the Bitnami Docker image and running the container, you can typically access the Odoo web interface using the following default credentials:
Email: user@example.com
Password: bitnamiHowever, it's important to note that these are default credentials, and for security reasons, you should change them immediately after your first login.
-
Enter your Odoo container to update user preferences
docker exec --user root -it [YOUR ODOO CONTAINER] /bin/bashReplace YOUR ODOO CONTAINER with your Docker odoo container Example : mine is "odoo17bitnami-odoo-1"
-
Once inside the odoo container install necessary packages :
apt-get update
And
apt install wget vim zip unzipOPTIONALLY: You Can access the Odoo container files through VS Code Docker route as shown below
-
Update your odoo configuration file odoo.conf as shown above with your preferred user password and also your host custom addons path :
addons_path = /opt/bitnami/odoo/addons /opt/bitnami/odoo/custom_addons admin_passwd = [Your-set-password]
-
Go to your Postgres Container as in Step 11 and login into the database: bitnami_odoo with user: bn_odoo with the belwo command
psql -U bn_odoo -d bitnami_odoo -
To list database roles (users):
\duThis shows roles and their attributes, but not emails or passwords. To list users with their login (which is often an email in Odoo):
SELECT id, login, active FROM res_users; -
check user is active and has permissions
UPDATE res_users SET active = true, share = false WHERE login = 'user@example.com';
-
You can update and change to your custom login email
UPDATE res_users SET login = 'fssendowooza@gmail.com' WHERE login = 'user@example.com'; -
Set a temporary password
UPDATE res_users SET password = 'temppassword123' WHERE login = 'fssendowooza@gmail.com';
-
Download and install custom modules in the custom-addons folder Custom open source modules can be obtained from the Odoo Apps official site (Link Below) be sure to filter category, Version etc
Or from the Odoo Community Association (OCA) github handle on the link below OCA Github modules
cd /opt/bitnami/odoo/custom-addons
git clone -b 18.0 https://github.com/OCA/timesheet.git timesheet
git clone -b 18.0 https://github.com/OCA/payroll.git payroll
Place the donwloaded module in your local custom addons folder which will automaticlaly be mapped to the host custom addons folder in odoo container.
Make sure you've opened the appropriate user permissions in your host custom addons folder and given appropriate user ownership rights.







