Odoo local environment boilerplate with Docker/Podman, for development purpose
- Dockerfile 100%
Before this commit, modules dependencies needed to be added individually in the Dockerfile. Dependencies whithout distribution packages required to use pip and --break-system-packages options. This commits creates a virtualenv on top of system packages at build, and automates the installation of dependencies declared in requirements.txt files at the root of each module folder. |
||
|---|---|---|
| config | ||
| .env.dist | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
Odoocker
Odoo local environment boilerplate with Docker/Podman, for development purpose
Setup
- If not enterprise version, remove the enterprise line in compose file
- Put your custom modules in
./modules - Duplicate env.dist to create an .env file in the project directory root to set up your environment variables
- If you want to customize the build (e.g. install dependencies) using the Dockerfile, remove the line
image:in the docker-compose file.
Start
docker-compose up -d
With the basic setup, it will create a new database odoo (master password odoo), with base&enterprise installed and demo data.
You can use the COMMAND var to custom the command at launch :
COMMAND="-d odoo -i mymodule" docker-compose up -d
Use
Odoo at localhost:8089/web
Odoo database manager at localhost:8089/web/database/manager
Mailcatcher at localhost:1080/