YAML based Odoo deployment tool using Docker. Docker sets up the environment Odoo will be built into, installs Debian, NPM, and Python packages. The further tooling is done by dob-lib. See the usage. For a documentation of the main YAML structure see the Further configuration.
dob only works with Python 3.6 or greater. Python 2.x is and will not be supported.
Use -f docker-compose.yaml -f mailhog.yaml after docker compose if a mailsink is
needed.
# To be able to use the git keys of the current user
$ ./setup.sh
# Build, initialization and start up
$ docker compose build
$ docker compose run --rm odoo odoo init
$ docker compose run --rm odoo odoo update
$ docker compose up
Minimal .env configuration file is generated by setup.sh. For production it's
recommended to set the value of DB_VERSION to a recent/supported one of postgresql.
Best is to use major versions with -alpine suffix.
Further configuration.
See Commands.
See Docker Environment.
There are multiple ways to deploy this project on servers. Beside the manual deployments using the commands above you can also rely on a more autonomous one. See Deployment for more information.
There are several presets defined in the specific version depending folders under
docs/presets/. These can be copied into the odoo/ folder to start a new project
easier. The presets are including the most basic requirements for the Odoo CE server
to run and don't include every possible package a module might require.
This project is inspired by the following projects: