Skip to content

opsway/odoo_module_capacity_planning

Repository files navigation

Odoo v18 Enterprise Edition - Docker Setup

This repository contains a Docker setup for running Odoo v18 Enterprise Edition.

Prerequisites

Quick Start

Option 1: Automated Setup (Recommended)

  1. Make the setup script executable:

    chmod +x setup.sh
  2. Run the setup script:

    ./setup.sh

    The script will:

    • Create necessary directories
    • Clone the Odoo Enterprise repository (branch 18.0)
    • Set up the configuration

Option 2: Manual Setup

  1. Clone the Enterprise repository:

    git clone https://github.com/odoo/enterprise.git
    cd enterprise
    git checkout 18.0
    cd ..
  2. Create necessary directories:

    mkdir -p config addons enterprise logs
  3. The configuration file is already created in config/odoo.conf

Running Odoo

Start Odoo

docker-compose up -d

View Logs

docker-compose logs -f odoo

Stop Odoo

docker-compose down

Stop and Remove Volumes (Clean Slate)

docker-compose down -v

Access Odoo

Once started, access Odoo at:

Configuration

Environment Variables

You can modify the environment variables in docker-compose.yml:

  • HOST: Database host (default: db)
  • USER: Database user (default: odoo)
  • PASSWORD: Database password (default: odoo)

Odoo Configuration

Edit config/odoo.conf to customize:

  • Admin password
  • Database settings
  • Addons paths
  • Performance settings
  • Logging options

Custom Addons

Place your custom addons in the addons/ directory. They will be automatically available in Odoo.

Directory Structure

.
├── docker-compose.yml    # Docker Compose configuration
├── Dockerfile            # Odoo Docker image configuration
├── config/
│   └── odoo.conf        # Odoo configuration file
├── addons/              # Custom addons directory
├── enterprise/          # Odoo Enterprise addons (cloned from GitHub)
└── logs/                # Log files directory

Troubleshooting

Database Connection Issues

If you encounter database connection errors:

  1. Check that the PostgreSQL container is healthy: docker-compose ps
  2. Verify database credentials in docker-compose.yml and config/odoo.conf match

Enterprise Addons Not Found

  1. Ensure the enterprise repository is cloned in the enterprise/ directory
  2. Verify the addons path in config/odoo.conf includes /mnt/enterprise-addons
  3. Check that the volume mount in docker-compose.yml is correct

Permission Issues

If you encounter permission issues:

sudo chown -R 101:101 addons enterprise

Updating Enterprise Addons

To update the Enterprise addons to the latest version:

cd enterprise
git pull origin 18.0
cd ..
docker-compose restart odoo

Notes

  • The default admin password is admin. Change it in production!
  • Database data is persisted in Docker volumes
  • The setup uses PostgreSQL 15, which is compatible with Odoo 18
  • Enterprise addons require a valid Odoo Enterprise subscription

License

Odoo Enterprise Edition requires a valid subscription. Make sure you have the proper license before using this setup.

About

Capacity Planning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •