This repository contains a Docker setup for running Odoo v18 Enterprise Edition.
- Docker and Docker Compose installed
- Access to the Odoo Enterprise repository (https://github.com/odoo/enterprise)
- GitHub personal access token with repository access
-
Make the setup script executable:
chmod +x setup.sh
-
Run the setup script:
./setup.sh
The script will:
- Create necessary directories
- Clone the Odoo Enterprise repository (branch 18.0)
- Set up the configuration
-
Clone the Enterprise repository:
git clone https://github.com/odoo/enterprise.git cd enterprise git checkout 18.0 cd ..
-
Create necessary directories:
mkdir -p config addons enterprise logs
-
The configuration file is already created in
config/odoo.conf
docker-compose up -ddocker-compose logs -f odoodocker-compose downdocker-compose down -vOnce started, access Odoo at:
- URL: http://localhost:8069
- Default Admin Password:
admin(configured inconfig/odoo.conf)
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)
Edit config/odoo.conf to customize:
- Admin password
- Database settings
- Addons paths
- Performance settings
- Logging options
Place your custom addons in the addons/ directory. They will be automatically available in Odoo.
.
├── 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
If you encounter database connection errors:
- Check that the PostgreSQL container is healthy:
docker-compose ps - Verify database credentials in
docker-compose.ymlandconfig/odoo.confmatch
- Ensure the enterprise repository is cloned in the
enterprise/directory - Verify the addons path in
config/odoo.confincludes/mnt/enterprise-addons - Check that the volume mount in
docker-compose.ymlis correct
If you encounter permission issues:
sudo chown -R 101:101 addons enterpriseTo update the Enterprise addons to the latest version:
cd enterprise
git pull origin 18.0
cd ..
docker-compose restart odoo- 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
Odoo Enterprise Edition requires a valid subscription. Make sure you have the proper license before using this setup.