Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
39 Widoki


I want each tenant to have:


Separate DB (one per tenant)


Shared base code and core modules


Custom modules per client


White-label branding managed from UI (not code)


Easy CI/CD for updates and Docker deployments


Any recommended Git structure or deployment best practices for scalability and maintenance?

Awatar
Odrzuć
Najlepsza odpowiedź

To manage a multi-tenant Odoo Community setup with white-label support, consider the following architecture:


Separate Databases per Tenant: Each tenant should have its own database for data isolation.


Shared Base Code & Core Modules: Maintain a common codebase for core functionality and base modules, ensuring consistency across tenants.


Custom Modules per Tenant: Use a modular approach, storing custom modules in tenant-specific directories or repositories, and referencing them in the main codebase.


White-label Branding: Store branding configurations (logo, theme, etc.) in the res.company model to allow UI-based customization per tenant, without code changes.


Git Structure:


Monorepo: Store shared core code and tenant-specific modules in a single repository with organized directories.

Example structure:

odoo-setup/

├── core/

├── tenant_1_modules/

└── tenant_2_modules/

CI/CD & Docker Deployment:


CI/CD: Automate deployments using tools like GitLab CI or Jenkins, ensuring proper testing and versioning.


Docker: Use Docker to containerize Odoo with shared base code and tenant-specific modules. Docker Compose or Kubernetes can orchestrate multiple tenant environments.


Scalability & Maintenance:


Database Management: Use Odoo’s --db-filter for tenant-specific databases.


Monitoring: Implement monitoring tools like Prometheus and centralized logging for system health and troubleshooting.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 24
3060
2
maj 24
8334
1
lut 24
2535
1
lis 22
6547
2
wrz 22
24804