All apps · 0 apps
Odoo18
OfficialDocker app from Eurotimmy's Repository
Overview
Readme
View on GitHubNotes for using Odoo18 on an Unraid server via the CA installation
- Installing the Odoo container in Unraid... I didn't need to adjust anything from the defaults in the template
- Installing PostgreSQL was also straight-forward and you'll only need to note down the settings you select here to transpose into the 'odoo.conf' file (detailed below)
- The support thread for this container is located in the Unraid Forums here, please post any questions or contributions
IMPORTANT NOTE 
I hit a couple of odd error's, most likely my own fault...
I needed to use the Extra Parameters in the Unraid template 'ADVANCED VIEW', with the value set as --user=100:101 due to having some issues with the container being able to write to the 3 mapped volumes
The process I followed was to check the uid and gid in the Odoo18 container with docker exec -it Odoo18 sh -c 'echo "uid=$(id -u) gid=$(id -g)"' which returned uid=100 gid=101
I then manually made the folder I had seen in the error logs with mkdir -p /mnt/user/appdata/odoo18/data/sessions
Then to CHOWN the folders with chown -R 100:101 /mnt/user/appdata/odoo18
And, finally CHMOD the folders with chmod -R 775 /mnt/user/appdata/odoo18
I was good from the next restart of the Odoo18 container
After installing Odoo, return to Unraid to view the container template in 'ADVANCED VIEW'
We will need to make a change to the Post Arguments section to avoid having a security exposure open via a default Admin account
The Post Arguments need to be removed after the initial first successful boot
- I have used the
-i basecommand as Odoo18 wouldn't initialise it's DB during it's first startup - The
-i basecommand must be removed to make for a safe environment
TO INSTALL WITHOUT DEMO DATA 
- To initialise the Odoo18 database without DEMO data being installed by default change your
Post Argumentsto be
-i base --without-demo=all --stop-after-init - This will initialise Odoo18, then NOT install the demo data, and finally will stop Odoo18 from running.
- Please restart your container after removing
-i base --without-demo=all --stop-after-initfrom yourPost Arguments
INSTALLATION STEPS 
The odoo.conf file needs to be copied in to the
Config Locationpath on Unraid server
TheConfig Locationpath is selected by you in the Odoo18 settings when installing in Unraid CA
Your typicalConfig Locationpath may be at/mnt/user/appdata/odoo18/configMy odoo.conf file if you'd like to use it
For my path (above), within the Unraid Shell / CLI:
-
cd /mnt/user/appdata/odoo18/config -
wget https://raw.githubusercontent.com/Eurotimmy/unraid-templates/main/Odoo18/odoo.conf -
nano odoo.conf
- The
odoo.conffile needs to be edited and then your Odoo Docker container needs to be started / restarted:
admin_passwd = (This password will become hashed on first start-up, for security reasons)
db_host = (Use the IP address assigned to the PostgreSQL container, in the 'Docker' tab)
db_port = (Enter what your PostgreSQL 'Container Port' is set to, from your PostgreSQL install)
db_user = (Enter what your PostgreSQL 'POSTGRES_USER' is set to, from your PostgreSQL install)
db_password = (Enter what your PostgreSQL 'POSTGRES_PASSWORD' is set to, from your PostgreSQL install)
db_name = (Enter what your PostgreSQL 'POSTGRES_DB' is set to, from your PostgreSQL install)
- Once your container starts, open the Odoo Web UI from your Odoo icon
- Username: admin
- Password: admin
NPM (Nginx Proxy Manager) - Reverse Proxy settings 
I am using NPM to reverse proxy my Odoo instance via my own domain name
You will need to edit your odoo.conf file (in your Config Location) to include proxy_mode = True
In NPM on my odoo.example.com domain I use the following in my location settings (within the 'Advanced' tab)
proxy_pass $forward_scheme://$server:$port;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
Additional Resources 
Theres a great GitHub Gist here with well documented options you can use in the odoo.conf file if you want greater control
Install Odoo18 on Unraid in a few clicks.
Find Odoo18 in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Requirements
Categories
Download Statistics
Total Downloads Over Time
Related apps
Explore more like this
Explore allLinks
Details
Runtime arguments
- Web UI
http://[IP]:[PORT:8069]- Network
bridge- Shell
sh- Privileged
- false
- Extra Params
--user=100:101
Template configuration
Port to access Odoo
- Target
- 8069
- Default
- 8069
- Value
- 8069
Odoo filestore (attachments, sessions, etc.)
- Target
- /var/lib/odoo
- Value
- /mnt/user/appdata/odoo18/data
Directory containing odoo.conf
- Target
- /etc/odoo
- Value
- /mnt/user/appdata/odoo18/config
Custom/community addons
- Target
- /mnt/extra-addons
- Value
- /mnt/user/appdata/odoo18/extra-addons