How to install Odoo 20 on a mini PC: a step-by-step guide

Illustration of a dedicated mini PC connected to two work computers over a local network.
A single Odoo installation allows people to work from different computers. Conceptual illustration by Idoneos depicting an ASUS PN41.

Where does an AI agent obtain the information it needs to do its work? Consider a company that receives a request for a quotation by email. To prepare a response, it needs to know who the customer is, which products they are requesting, their prices, stock availability, and perhaps the commercial terms agreed upon previously.

We can entrust an agent with interpreting the request and preparing a proposal. But it needs to find reliable information and deliver the result in a system where the people in the company can review it, approve it and continue the work.

A business management system and an AI agent perform complementary functions. The former stores and organizes information and records business operations. The latter can interpret requests, retrieve data, relate information, prepare decisions or perform authorized actions. There is no point in having an agent invent a price or confirm a delivery without consulting the appropriate sources.

At Idoneos, we help professionals and small and medium-sized businesses adopt AI and automation, from identifying an opportunity to integrating it into day-to-day work. This is why we are interested in Odoo, a suite of business management applications that share a common information base: from tracking sales opportunities and managing sales to purchasing, inventory and invoicing, depending on the edition and installed modules.

Having that system makes it easier to integrate agents into actual operations. Returning to our example, an agent can retrieve product and customer information through the available integration interfaces, prepare a draft quotation and request a person’s approval before sending it. The company not only gets a response prepared more quickly: it can continue the sales process and keep a record of what was done.

An agent interprets a request, consults Odoo and prepares a quotation for a person to review and approve.
Example of an integration to be developed: Odoo provides the data; the agent prepares the draft; a person decides whether to send it. Enlarge illustration.

So how can we explore these possibilities and applications? One option is to start a free trial on the Odoo website; another is to install Odoo on a local computer.

I installed Odoo 20 on an ASUS PN41 mini PC with 8 GB of memory. The purpose of this guide is to reproduce that experience as a local environment for learning and experimentation, accessible from other computers on the network. We will use Ubuntu Server, Docker Compose, PostgreSQL and Nginx. The scripts and configuration files are available in a GitHub repository.

1. The different ways to use Odoo

It is worth distinguishing the software edition from where and how we run it.

Odoo Community is the open-source edition; Odoo Enterprise includes additional applications and features subject to a commercial license. The available applications and integration options depend on the edition and subscription plan.

In either case, we need somewhere to run Odoo and store its information. These are the main alternatives:

Option What we get What we need to manage
Odoo Online A SaaS service hosted by Odoo and accessed through a browser. Configure the company and its applications. Odoo manages hosting and infrastructure; installing custom code modules is restricted.
Odoo.sh Odoo’s cloud platform for projects involving custom development or modules. Applications, code and project configuration; the platform manages much of the infrastructure and provides testing environments.
Self-managed cloud server (VPS) A self-managed installation on rented infrastructure. Operating system, Odoo, database, security, updates and backups.
Self-managed server on the local network An installation running on a company-owned computer and accessed over the LAN. The same management responsibilities, plus the physical computer, its power supply and network.

The last two are variants of self-managed hosting, known as on-premise in Odoo’s terminology. We can run Community and, with the appropriate license, Enterprise. The current commercial options and terms are available in the official comparison of hosting types.

In this guide we will install Odoo 20 Community, not Enterprise.

2. Why use a mini PC as a local server?

It is possible to set up Odoo on the computer we use for work. The drawback is that the system would become unavailable every time we turned it off. It would also compete for memory, processing power and disk space with the other applications we use.

A dedicated mini PC offers a simple solution. We install the software once and access it through the browsers on our usual work computers. None of those computers has to become a server or have Odoo installed on it.

A small computer with an SSD and sufficient memory allows us to:

That last point does not mean the information is automatically protected. Responsibility for backups, access permissions, network security and availability of the computer becomes ours. If we later test an agent that uses an external AI service, we will need to consider what information leaves the network and under what authorization.

3. Hardware, software and network

Our reference machine is an ASUS PN41 with 8 GB of RAM. The processor, memory and storage configurations of this model are described in the ASUS datasheet. We do not need a dedicated graphics card to run Odoo and PostgreSQL; if we also intend to run a local AI model, that is a separate workload that we must size independently.

Resource Recommendation for this pilot
Processor x86-64, as in the PN41. Preferably multiple cores.
Memory 8 GB for a small environment; 16 GB provides more room to grow.
Storage SSD; 128 GB as an indicative starting capacity, preferably 256 GB or more depending on attachments and backups.
Connectivity Ethernet, with an IP address reserved on the router.
Operating system 64-bit Ubuntu Server 24.04 LTS, without a graphical desktop.
Software Docker Engine, Docker Compose plugin, Odoo 20 Community, PostgreSQL 16, Nginx and Avahi.

Ubuntu 24.04 LTS is the choice for the reproducible version of this guide. The original installation did not record the exact Ubuntu release or the specific characteristics of the processor and SSD.

How many users can an 8 GB mini PC support?

Not every user consumes the same resources. A person looking up a customer for a few minutes generates a very different load from a process that imports thousands of products, calculates reports or generates hundreds of documents.

For this pilot, I suggest starting with one to three users active at the same time, using a few modules and test data. If response times remain satisfactory and we observe sufficient memory and processing capacity, we can try four or five concurrent users before deciding whether to upgrade the computer.

These figures are not the results of a load test. They are a starting hypothesis. The actual limit will also depend on the processor’s performance, the modules, the size of the database, reports and scheduled tasks. The total number of accounts created is not the same as the number of users working simultaneously.

4. Prepare Ubuntu Server

Download Ubuntu Server 24.04 LTS, create USB installation media and install the system on the mini PC. The installer allows us to enable OpenSSH so that the server can be managed from another computer. Check which disk to use beforehand: installing the system may erase its contents.

Once Ubuntu has started, update the packages:

sudo apt update
sudo apt upgrade
sudo apt install -y git

Check the computer’s name and address:

hostnamectl
ip -br address
free -h
df -h /

On the router, reserve an IPv4 address for the mini PC using DHCP. For example, 192.168.1.25, if it belongs to our subnet. The reservation prevents a restart from changing the IP address browsers use to connect to the server.

Set the hostname to odoo, provided it is not already used by another device:

sudo hostnamectl set-hostname odoo

With Avahi, a computer on the same network that supports mDNS can resolve the name odoo.local. If name resolution does not work, we can use the IP address directly. The address in this guide is an example; use the actual address for the installation.

5. Install Docker Engine and Docker Compose

Docker allows us to run applications in containers with their runtime environment and dependencies. Instead of manually installing Python, Odoo libraries, PostgreSQL and Nginx on Ubuntu, we will use the images for those three services.

Docker Compose defines them in a single file, allowing us to start, stop and recreate system components in a coordinated way. Data is stored in volumes independent of the containers.

Download the files from the companion repository:

git clone https://github.com/nearServices/odoo-minipc.git
cd odoo-minipc
./install-dependencies.sh

The script installs the necessary packages, configures the official Docker repository for Ubuntu 24.04 and installs Docker Engine with the Compose plugin. It also installs Avahi and enables the corresponding services to start through systemd.

To check that Docker is working:

sudo docker --version
sudo docker compose version
sudo docker run --rm hello-world

We use sudo to operate Docker. Adding a user to the docker group also allows them to work without sudo, but in practice grants privileges equivalent to those of a system administrator. This guide does not grant those privileges by default. Equivalent manual installation commands can be found in the official Docker documentation for Ubuntu.

6. Understand what we are installing

The browser connects to Nginx over HTTPS. Nginx receives the request and forwards it to Odoo. Odoo interprets the requested operation, retrieves or modifies information in PostgreSQL and produces the result. The response returns to the browser through Nginx.

Local server architecture: browsers access Nginx over HTTPS, Odoo uses internal port 8069, PostgreSQL uses port 5432 and the filestore is persistent.
The mini PC hosts all three services. Nginx is the entry point from the LAN; Odoo, PostgreSQL and the volumes remain internal. Enlarge illustration.

The three containers communicate over an internal network created by Docker Compose. The only ports published on the mini PC’s IP address are 80 (redirecting to HTTPS) and 443 (HTTPS). Neither PostgreSQL nor Odoo’s internal port is published directly on the work network.

The compose.yaml file defines the services:

There is no need to install PostgreSQL on Ubuntu; it will run in its own container.

7. Configure and start Odoo

In the directory we downloaded, run:

./setup.sh

The script asks for the mini PC’s stable IPv4 address and local name (by default, odoo.local). It then performs the following operations:

  1. Generates passwords for PostgreSQL, the Odoo role and Odoo database administration.
  2. Creates .env for the environment configuration and config/odoo.conf for Odoo.
  3. Generates a private certificate authority (CA) and a server certificate valid for the selected name and IP address.
  4. Checks the Compose definition and starts the containers.

The version prepared for publication retains the architecture of the original installation but incorporates improvements in credential generation, permissions and the local certificate. Permanent files in the repository do not contain secrets. Those generated for each installation are excluded from Git and kept locally. The script refuses to overwrite an existing installation.

For a learning environment, we will initially keep workers = 0, the threaded server mode, and a single thread for scheduled tasks. This is a simple configuration, not a definitive performance optimization. The configuration also enables proxy_mode because Odoo receives requests through Nginx. That mode should not be enabled in an installation where clients can reach the Odoo server directly, bypassing the proxy.

Check the result:

sudo docker compose ps
sudo docker compose logs --tail=100 db web proxy

The first time, the images for the three services are downloaded, so the process may take several minutes. PostgreSQL is initialized before Odoo starts. If a service fails to become available, its logs will help us understand what happened.

8. Access Odoo over HTTPS from the local network

In the browser of another computer, try this address:

https://odoo.local/

Or, if the reserved address is the one in our example:

https://192.168.1.25/

Since we are doing this on a local network without a public domain, we have created our own certificate authority. Operating systems and browsers do not yet trust it. For the connection to be validated correctly, we need to install its public certificate on the devices from which we will use Odoo.

On the mini PC, obtain the certificate fingerprint:

openssl x509 -in certs/ca.crt -noout -fingerprint -sha256

Transfer only the certs/ca.crt file through a trusted channel, for example an SSH connection whose identity has already been verified. Compare the fingerprint with the one obtained on the mini PC and follow the operating system’s or browser’s procedure for importing a trusted local CA.

Do not distribute ca.key or odoo.key: those are the private keys. Keep them protected. A trusted CA allows other certificates signed by that CA to be validated, which is why safeguarding its key matters.

Once installed, the browser should recognize the certificate and show a secure connection. If it warns of an incorrect name, expiration date or unknown authority, correct the cause rather than disabling verification. The generated server certificate is valid for one year and must be renewed.

If there is no connection, first check that the computers are on the same network, the reserved IP address is correct and the containers are running.

9. Create the first database and start exploring

On the first visit, Odoo displays the database management interface. We will create a database with a recognizable name, for example odoo_piloto.

The master password field corresponds to the admin_passwd value in config/odoo.conf on the mini PC. An authorized user can consult it there privately. It must not be shared with ordinary Odoo users.

It is worth distinguishing three types of credentials:

In the form, choose the email and password of the first administrator, the language and the appropriate country. If the purpose is learning, we can request demonstration data. It should not be mixed with real operations.

We can start with CRM, Sales and a small selection of Community applications. For example, register a fictional customer, create a sales opportunity and prepare a quotation. From a second computer, another user with the appropriate permissions can continue the task and experience the benefits of working with the same information.

10. Automatic startup and systemd service

Ubuntu uses systemd to manage the computer’s services. The installation enables docker.service, containerd.service and avahi-daemon.service. Docker, in turn, restarts containers whose Compose file includes the policy restart: unless-stopped.

In this architecture, we do not need a separate odoo.service: Odoo runs inside a container, and Docker is the system service responsible for starting it.

systemctl is-enabled docker.service
systemctl status docker.service
systemctl status avahi-daemon.service
sudo docker compose ps

We can restart the mini PC at an agreed time and, once it is available again, check access from another device. If the containers were stopped manually, we will need to start them again using Compose.

sudo docker compose stop
sudo docker compose up -d

Both operations preserve the databases and files. Do not use docker compose down -v if we want to keep them: that option removes the associated volumes.

11. What to observe before adding more users

To understand what 8 GB of memory allows us to do, we need to observe the machine while it works. We can start with a lookup, a quotation and a report performed from several computers, paying attention to response times and resources used.

free -h
df -h /
sudo docker stats --no-stream
sudo docker compose logs --tail=100 web

If imports or complex reports affect other people’s work, we can schedule them during periods of low activity, review the configuration or increase the available resources. If we need to move to intensive use, evaluate a more powerful server or one of the cloud alternatives.

From a test installation to a working installation

It is easy to confuse having an accessible application with having a system ready to support a company’s operations. Before entrusting it with real data, some essential decisions need to be made:

Docker images make components easier to install and update, but do not perform migrations between major Odoo versions on their own. Before updating, consult the Odoo 20 documentation and make a verifiable backup.

12. An opportunity to build

The experience of installing Odoo on a mini PC is valuable because of what it enables us to do next. We can explore business processes, understand how operations are related and discover where it makes sense to introduce automation or an AI agent.

We do not need to decide from the outset how to transform the entire business. We can choose a process, run a test with a small team, evaluate the results and decide what to develop next.

At Idoneos, we can accompany this process: from choosing the Odoo option that best suits the needs of the business and implementing it, to designing and integrating agents with work processes.

If there is interest in exploring an Odoo implementation or integrating it with artificial intelligence, we can begin with a conversation about the work to be improved, the systems available and an initial experiment that makes it possible to assess the usefulness of the solution.

Contact Idoneos

Resources and equipment for exploring this installation

Platform Equipment and services
Mercado Libre ASUS PN41 with 8 GB · Other mini PCs
Amazon ASUS PN41 · Other mini PCs
Odoo Odoo homepage · Odoo CRM

Affiliate links: Idoneos may receive a commission on purchases or subscriptions made through the affiliate links in this article.
As an Amazon Associate I earn from qualifying purchases.