we're no longer maintaining this repo.
Configuration file: config/odoo.conf
project
└───addons /// Place for your custom addons
│ │ .addons
└───config
│ │ odoo.conf /// Config for odoo
└───enterprise /// Place for enterprise addons
│ │ .enterprise
│ .env /// Enviromnet variables (for Odoo, Postgress, etc.)
│ .gitignore
│ docker-compose.yml
│ odoo-init.sh /// Setup odoo script
│ odoo.Dockerfile /// Dockerfile for odoo service
│ project-start.sh
│ README.md
On Linux, WSL, or using bash, start the project with:
bash project-start.sh
Using docker-compose directly:
docker-compose -f docker-compose.yml up
Go to localhost:8069/web/#
After changing environent parameters, a build might be neccessary. --build
will do that:
docker-compose -f docker-compose.yml up --build
admin
Password
admin
To see all your databases or to create a new one go to localhost:8069/web/database/manager.
Folder contains a Dev Container configuration file.
Install ms-vscode-remote.remote-containers
extension.
Reopen folder to develop in a container (learn more).
To get the current status of the containers including additional information run
docker ps
To start with a fresh database (because you need it, or after changing the odoo version), get the volume name from:
docker volume ls
docker image ls
It usually ends with *-db
or *-db-1
. Make sure the project/container is stopped (see section 'Status').
To delete the volume run the following command.
docker volume rm VOLUME
Replace VOLUME
with the volume name.
If the volume somehow is still in use, you can delete the database image docker image rm IMAGE
add --force
to the command.
Get the Odoo Debug Extension for Chrome or Firefox.
Connect to odoo container:
docker exec -it CONTAINER /bin/bash
The development performance on Windows can be improved by using the Windows Subsystem for Linux (WSL). To activate it follow these steps, using the Windows PowerShell:
wsl --install
"This command will enable the features necessary to run WSL and install the Ubuntu distribution of Linux."
Find the full step-by-step guide here, including how to switch distros.
If everything was successfull, Ubuntu will show up in you Docker Desktop settings.
The odoo-init.sh script will setup everything inside the odoo container. That container is based on a Linux which uses different escaping characters for linebreaks, than Windows.
- On Windows it is set to be
CR LF
. Make sure the control characters are set to beLF
. In VS Code there is a button in the bottom right, next to the UTF-8 encoding.
CR = Carriage Return and LF = Line Feed
- Your docker is not working correctly. Make sure it is running.