This repo uses a unique approach for Odoo configuration: the main odoo.conf is generated at runtime by merging a general config and a sensitive config file. This keeps secrets out of version control and makes environment management easier. For details and best practices, see docs/odoo-conf-usage.md.
Official Docs: Windows Subsystem for Linux Installation Guide
- Open PowerShell or Windows Terminal as Administrator.
- Run:
This installs WSL2 by default on Windows 10 (version 2004 and higher) or Windows 11.
wsl --install - Restart your computer if prompted.
Official Docs: Installing Linux Distros from the Microsoft Store
- Open the Microsoft Store in Windows.
- Search for Ubuntu (or your preferred distribution, e.g., Debian).
- Click Get and then Install.
- Launch the newly installed distribution from the Start menu.
- Complete the initial setup steps (username, password, etc.).
Official Docs: Install Docker Desktop on Windows
- Download Docker Desktop for Windows from the link above.
- Run the installer and follow the on-screen instructions.
- When prompted, enable the option to use WSL 2 instead of Hyper-V if it’s available.
Official Docs: Docker Desktop WSL Integration
- Open Docker Desktop.
- Click on Settings (gear icon).
- Go to Resources > WSL Integration.
- Turn on Enable integration with my default WSL distro (and/or select the specific distro, e.g., Ubuntu).
Official Docs:
Manage Docker as a non-root user
- In your Ubuntu (WSL2) terminal, run:
sudo usermod -aG docker $(whoami) - Close the terminal (logout) and reopen it (login again) so that the group membership is re-evaluated.
You can place your project files anywhere accessible to WSL2. It’s generally recommended to keep your project inside the Linux filesystem (e.g., in ~/projects) rather than on the Windows filesystem for better performance.
- Make sure
gitis installed in your WSL environment:sudo apt-get update sudo apt-get install git
- Clone the repository:
git clone https://github.com/LiquenOpS/odooBundle-Codebase.git
- Enter the project directory:
cd odooBundle-Codebase - Update the submodules:
git submodule update --init --recursive --depth=1
Official Docs: Docker Compose Overview
-
Run:
docker compose up -d
This command pulls the required images (if not already present) and starts the containers in the background.
-
Open Docker Desktop and verify that all containers are running without errors.
- In your web browser, go to:
http://localhost:8069 - If everything is running correctly, you will see the Odoo web interface.
Inside the running Odoo container, there is a helper script (create-odoo-db.py) to set up your initial Odoo database and user credentials.
- To create the database with default credentials (
admin/admin):docker compose exec odoo create-odoo-db.py - To override the default login and password, use:
Example:
docker compose exec odoo create-odoo-db.py --login <YOUR_LOGIN> --password <YOUR_PASSWORD>
docker compose exec odoo create-odoo-db.py --login myuser --password mypass
- Default login credentials:
Login:
adminPassword:admin - If you changed the credentials in the previous step, use those instead.
You now have Odoo running in Docker on WSL2! You can modify the project, pull updates, and manage everything through Docker Compose. If you need to bring the containers down, simply run:
docker compose downAnd bring them back up again when needed:
docker compose up -d