diff --git a/.env.dist b/.env.dist index e7cff81..cc46ba7 100644 --- a/.env.dist +++ b/.env.dist @@ -1,3 +1,4 @@ ODOO_VERSION=17.0 COMMAND=-d odoo -PG_VERSION=14.12 #Moved to 14.15 in Odoo 18 \ No newline at end of file +PG_VERSION=14.12 #Moved to 14.15 in Odoo 18 +ENTERPRISE_PATH=/local/path/to/enterprise/modules \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0d41556..be03c24 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .env odoo enterprise -modules/ +modules/* .idea/ diff --git a/README.md b/README.md index 7e83625..b4bdbca 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,10 @@ Odoo local environment boilerplate with Docker/Podman, for development purpose ## Setup -Create enterprise directory (Enterprise&Odoo versions must match) - or delete it from compose and odoo.conf files +If not enterprise version, remove the enterprise line in compose file +Put your custom modules in `./modules` -```shell -ln -s /path/to/you/enterprise/modules enterprise -``` - -Create an .env file in the project directory root to set up environment variables : - -```file:./.env -ODOO_VERSION=18.0 -COMMAND=-d odoo -``` +From env.dist, create an .env file in the project directory root to set up environment variables ## Start @@ -29,9 +21,9 @@ You can use the COMMAND var to custom the command at launch : COMMAND="-d odoo -i mymodule" docker-compose up -d ``` -## Links (localhost) +## Use -Odoo at (http://localhost:8089/web)[https://localhost:8089/web] -Odoo database manager at (http://localhost:8089/web)[https://localhost:8089/web/database/manager] +Odoo at [localhost:8089/web](http://localhost:8089/web) +Odoo database manager at [localhost:8089/web/database/manager](http://localhost:8089/web) -Mailcatcher at (http://localhost:1080/)[http://localhost:1080/] +Mailcatcher at [localhost:1080/](http://localhost:1080/) diff --git a/docker-compose.yml b/docker-compose.yml index d4f5ef1..75dc599 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: - odoo-web:/var/lib/odoo - ./config:/etc/odoo - ./modules:/mnt/extra-addons - - ./enterprise:/mnt/enterprise + - ${ENTERPRISE_PATH}:/mnt/enterprise command: "odoo ${COMMAND}" db: image: "postgres:${PG_VERSION}"