How to Install Odoo on Your Synology NAS

How to Install Odoo on Your Synology NAS

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. In this step by step guide I will show you how to install Odoo on your Synology NAS using Docker.

Note: This guide works perfectly with the latest Odoo 16 release

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

  • STEP 3

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 4

Go to File Station and open the docker folder. Inside the docker folder, create two new folders and name them odoo and odoodb. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

1 Odoo Synology NAS Set up

  • STEP 5

Now create three new folders inside the odoo folder that you created at STEP 4 and name them addons, config, web-data. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

2 Odoo Synology NAS Set up

  • STEP 6

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

1 Synology Portainer Add Stack

  • STEP 7

In the Name field type in odoo. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

version: '3'
services:
  web:
    image: odoo
    container_name: Odoo
    depends_on:
      - db
    ports:
      - 8069:8069
    volumes:
    - /volume1/docker/odoo/web-data:/var/lib/odoo
    - /volume1/docker/odoo/config:/etc/odoo
    - /volume1/docker/odoo/addons:/mnt/extra-addons
  db:
    image: postgres:latest
    container_name: Odoo-DB
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - /volume1/docker/odoodb:/var/lib/postgresql/data/pgdata

3 Odoo Synology NAS Set up new 2023

  • STEP 8

Scroll down on the page until you see a button called Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

4 Odoo Synology NAS Set up new 2023

  • STEP 9

If everything goes right, you will see this message at the top right of your screen: “Success Stack successfully deployed“.

5 Odoo Synology NAS Set up

  • STEP 10

Go back to STEP 1 or you will deal with karma 🙂.

  • STEP 11

Now open your browser and type in http://Synology-ip-address:8069/ Follow the instructions in the image below.

  1. Type in your automatically generated Master Password.
  2. Type in a random name for your database.
  3. Type in your Email.
  4. Type in a random Password.
  5. Type in your Phone number.
  6. Select your Language.
  7. Select your Country.
  8. Click Create database.

Odoo Synology NAS Set up 7

  • STEP 12

After you click Create database wait a few minutes until the database is created. After the database is created, you will be prompted to type in your own Email and Password that you have previously created at STEP 11. Click Log in. Follow the instructions in the image below.

Odoo Synology NAS Set up 8 new

  • STEP 13

Enjoy your Odoo!

Odoo Synology NAS Set up 9 new

Note: If you want to run Odoo container over an HTTPS connection, check out my guide on How to Run Docker Containers Over HTTPS. Attention: Odoo requires to Enable HSTS in reverse proxy to work.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update the Odoo container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Thursday / January 12th, 2023 at 12:51 PM