Тип сервиса
Сервис Odoo (buildable)
Odoo Community Edition, собранный из вашего Git-репозитория с вашими модулями, модулями сообщества или Enterprise и нужными им Python-пакетами.
Этот сервис запускает ваш код: его образ собирается из Git-репозитория, а каждая сборка развёртывается в окружение.
На этой странице
В StackMaster
Как Odoo (buildable) работает в StackMaster
Image
The service runs the prebuilt wodby/odoo image, with nothing built for it: Odoo's official image (Ubuntu, Odoo's Debian package, the patched wkhtmltopdf for PDF reports) running as the wodby user (uid 1000). Every Community app ships in the image and is installed from Odoo's Apps menu.
Custom or community modules need an image of their own built FROM wodby/odoo:<version> with the modules copied to /usr/src/app: every directory up to three levels deep there that contains modules is added to the addons path. Use it from a custom service based on this one.
Configuration
/etc/odoo/odoo.conf is rendered from environment variables on every start; never edit it in a running container.
- Database. One database, from the
dblink:DB_HOST,DB_PORT,DB_NAME,DB_USER,DB_PASSWORD. Odoo serves only that database (db_name, with nodbfilter), and the database manager is off (list_db = False), so databases are never created, copied or dropped from the web. When the linked server has a CA certificate (DB_SSL_CA), Odoo connects withverify-fullTLS. The database must be PostgreSQL. - Data.
data_diris/mnt/files, thefilestorevolume shared by every replica through the linked storage service. Uploaded files (the filestore) and sessions are kept there; the database holds everything else. - Processes. Odoo runs with workers (
workerssetting, default 2) andmax-cron-threads(default 1) processes for scheduled actions in each replica. Live updates (/websocket: chat, notifications) are served by a separate gevent process on port 8072, which the Odoo Nginx service routes to. Each worker can use up to 2.5 GB (ODOO_LIMIT_MEMORY_HARD) and a request up to 120 s (ODOO_LIMIT_TIME_REAL). - Proxy.
proxy_modeis on: Odoo takes the host and scheme from the Nginx service's forwarded headers. - Email. With a mail server linked as
sendmail,SMTP_HOSTandSMTP_PORTbecome Odoo's default outgoing server. Without one, set up an outgoing mail server in Odoo's settings. - Other options: the variables listed in the wodby/odoo README.
Installation and updates
Odoo can't serve an empty database, so the first start of the service installs Odoo before it answers (the startup probe allows 15 minutes). After every deployment the Install or update Odoo action (odoo-update) runs. Replicas and the action wait for each other, so Odoo is installed once.
- First deployment: installs
baseand theinit-modulessetting's apps into the empty database, without demo data. The administrator gets theadmin-login(defaultadmin),admin-password(required) andadmin-emailsettings; thelanguagesetting is loaded and given to the administrator. The company is named after the app.web.base.urlis set to the app's main address (WODBY_PRIMARY_URL, passed withrouteMetadata). - Without an admin password the service doesn't start and nothing is installed.
- Later deployments: updates installed modules whose manifest
versionwent up, for example after a new image, and installed modules under/usr/src/appwhose files changed (exceptstatic/andtests/). Checksums are kept in the database (wodby.module_checksums). New modules are added to the Apps list but not installed. - A database where an earlier installation stopped halfway is never installed over: the service doesn't start.
- Changing the admin settings after the first deployment does not change the account; change it in Odoo.
The Update all modules button runs odoo-update all (odoo -u all), for example after an Odoo image update that changed core modules without raising their versions.
Limits
- Community Edition only. Custom and Enterprise modules need an image built on
wodby/odoo. - Odoo 18 to 20; one database per service.
- No development workspace.
Check the result
curl -s localhost:8069/web/healthin the container returns{"status": "pass"}.- The first start's container log shows the installation; the deployment's post-deploy log shows updates.
odoo shell -d "$DB_NAME"opens a Python shell in the container.
Buildable Odoo on Wodby
This service is the odoo service built from the app's repository: its guidance applies to settings, data, processes, installation and updates. This page covers what differs.
Image
The image is built from the app's Git repository on top of the same wodby/odoo image the odoo service runs, so the service's versions are Odoo versions (18, 19, 20). Start the repository from the Odoo boilerplate. The build copies the repository to /usr/src/app and:
- installs the Python packages listed in
requirements.txt, when the repository has one, for thewodbyuser. Lines likegit+https://...work: Git is in the image. There is no compiler, so packages need prebuilt wheels; - finds the repository's modules: every directory up to three levels deep that holds modules (directories with a
__manifest__.py) is added to Odoo's addons path. Modules can be at the root, inaddons/, or in one directory per module collection copied from a community repository. The build log shows the addons path and the module list; - fails when a module has the name of one of Odoo's own modules, because Odoo would ignore it. A module found in two directories is reported: Odoo uses the first.
Odoo's exact build comes from the wodby/odoo image revision the service uses, not from the repository: it moves forward with service updates, and the app's next build uses it.
Modules
- First deployment: installs
baseand theinit-modulessetting's apps, which can include the repository's own modules. - Later deployments: the Install or update Odoo action updates installed modules whose files changed in the repository, or whose manifest
versionwent up. New modules appear in the Apps menu but are not installed: install them there. A module removed from the repository while installed stops Odoo from loading it: uninstall it in Odoo first.
Odoo Enterprise modules go in the repository like any other module; they need an Odoo Enterprise subscription.
Обзор
Технический профиль Odoo (buildable)
Версии
Основан на
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Стеки
Стеки, в которые входит Odoo (buildable)
CI/CD
Сборка Odoo (buildable) из Git-репозитория
Vanilla Odoo
Используйте его как есть или клонируйте в свой Git-аккаунт.
wodby/odoo-boilerplateCI-провайдеры
StackMaster CI встроен в платформу: пайплайн описывается в файле .wodby/pipeline.yml в репозитории. Для подключённого репозитория те же шаги может выполнять внешний CI-провайдер с помощью StackMaster CLI.
Реестры контейнеров
Собранные образы по умолчанию попадают в StackMaster Registry или во внешний реестр, подключённый как интеграция.
Переменные окружения из интеграций
Интеграция с переменными один раз сохраняет учётные данные стороннего сервиса. Подключите её к Odoo (buildable), и StackMaster передаст их в контейнер как переменные окружения во время работы, а не при сборке образа.
Конфигурация
Конфигурация сервиса Odoo (buildable)
Тома
Настройки
Действия
Связи сервиса
Каждая связь — это подключение Odoo (buildable) к другому сервису. На какой сервис указывает связь, задаёт стек. На карточках перечислены публичные сервисы, которые подходят для каждой связи.
db
Сервисы, которые подходят для этой связи
filestore
Сервисы, которые подходят для этой связи
sendmail
Сервисы, которые подходят для этой связи