Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo in Docker on Synology NAS

Subscribe

Get notified when there's activity on this post

This question has been flagged
3 Replies
12746 Views
Avatar
Yannick Heyne

Hello Odoo friends,

I have a problem, I'm more of a Windows person and am now trying Linux, i.e. Docker.
I'm running Odoo16 on a Docker (Syno NAS). Now third party wants to install APPs.
I created a folder and everything else so far. I put the app that I wanted in there. I also mounted it, but it doesn't appear in Odoo so I can install it. Can someone please tell me how and where I have to do this so that I can put the APPs in a folder on the NAS and then install them in Odoo.

Thank you in advance

0
Avatar
Discard
Avatar
Jort de Vreeze
Best Answer

I have a test server running on a Synology NAS. I use the following docker-compose.yml:

version: '3.8'

services:

postgres:
container_name: odoo-postgres
image: postgres:14.1-alpine
networks:
- web
ports:
- 5432:5432
environment:
POSTGRES_DB: postgres
POSTGRES_USER: odoo
POSTGRES_PASSWORD: secret
volumes:
- ./postgres-data:/var/lib/postgresql/data
restart: always

odoo:
container_name: odoo
image: odoo:15.0
networks:
- web
environment:
HOST: postgres
USER: odoo
PASSWORD: secret
depends_on:
- postgres
ports:
- 8069:8069
volumes:
- ./config:/etc/odoo
- ./extra-addons:/mnt/extra-addons
- ./data:/var/lib/odoo
restart: always
links:
- postgres

networks:
web:
external: true
name: web

Please make sure that you have configured /config/odoo.conf correctly and included your module in the addons_path:

[options]
addons_path = /usr/lib/python3/dist-packages/odoo/addons, /mnt/extra-addons
...

In Odoo you also have to 'Update App List' in the Apps module. This item is visible when you activate the developer mode under 'Settings'. For more information, you can also check out my blog post: https://jortdevreeze.com/blog/odoo-2/dock-stack-launch-odoo-deployment-with-docker-and-portainer-4

I hope this helps!

0
Avatar
Discard
Avatar
Chris Mann
Best Answer

I've been using Odoo on Docker with Synology NAS for a while.
If you are using it behind the Synology reverse proxy (NGINX) for LetsEncrypt, I always follow the script below to lock it down further for better performance and security.

Synology Tweaks:
1. Login via SSH
2. Go to /usr/syno/share/nginx, make a backup copy of both gzip.mustache and HSTS.mustache
3. Edit gzip - Add the following lines to the bottom:
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
4. Edit HSTS.mustache - Add the following:
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload" always;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy "strict-origin";
add_header X-XSS-Protection "1; mode=block";
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
5. Run nginx -t, systemctl reload nginx, then systemctl restart nginx
6. Test via Gtmetrix, SSLTest and securityheaders.com

0
Avatar
Discard
Avatar
Yannick Heyne
Author Best Answer

Ok that helps me, but that will be my problem, that the module is not correct in the odoo.conf. My problem, I just realized that I can't find / open it. I also looked at your blog. You install the Odoo via stack and I simply installed it via New Container. That's probably why I wasn't able to store the data correctly there.


0
Avatar
Discard
Jort de Vreeze

You need to make the /etc/odoo, /mnt/extra-addons, and /var/lib/odoo folders persistent (i.e., use volumes). What you could do is ssh into your NAS and in you odoo folder add the docker-compose.yml file:

$ echo "" > docker-compose.yml

And then create the folders as specified in the docker-compose.yml file below:

$ mkdir config
$ mkdir extra-addons
$ mkdir data

And then build and run your containers:

$ sudo docker-compose up -d --build

Now these directories will contain the data you need. Alternatively, is that you create volumes and use these (e.g., docker volume create volume_name) and use these. These folders can be found in my Synology NAS under: '/volume1/@docker/volumes/volume_name'

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now