{"id":22589,"date":"2026-11-28T12:03:07","date_gmt":"2026-11-28T09:03:07","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/install-odoo-on-vps\/"},"modified":"2026-11-28T12:03:11","modified_gmt":"2026-11-28T09:03:11","password":"","slug":"install-odoo-on-vps","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/install-odoo-on-vps\/","title":{"rendered":"Install Odoo on a VPS with Docker: Your Own ERP on Your Own Server"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>In short<\/b>Odoo is an open-source ERP for sales, inventory, accounting and HR. On a VPS you run <b>Odoo<\/b> and <b>PostgreSQL<\/b> with Docker behind <b>Caddy<\/b> for HTTPS. Start with a <b>4GB<\/b> plan for a small team and <b>8GB<\/b> as users grow.<\/div>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-vu-hero-vu-odoo-en.webp\" alt=\"Installing Odoo on a VPS\" width=\"1200\" height=\"630\" loading=\"lazy\" \/><\/figure>\n<p>Running Odoo on your own server gives you full control of your data, modules and customisations, without per-user fees for the hosted edition. In return you handle updates and regular backups, which this guide covers.<\/p>\n<h2>Choosing resources<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Use<\/th>\n<th>Suitable plan<\/th>\n<th>Why<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Testing or a startup<\/td>\n<td>VPS 4GB<\/td>\n<td>Odoo and PostgreSQL together need at least 2 to 3 GB<\/td>\n<\/tr>\n<tr>\n<td>A mid-size team with several modules<\/td>\n<td>VPS 8GB<\/td>\n<td>Inventory, accounting and reports use memory<\/td>\n<\/tr>\n<tr>\n<td>A company with many users<\/td>\n<td>VPS 16GB<\/td>\n<td>Room for more concurrent work and a bigger database<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Before you start<\/h2>\n<ul class=\"hkb-list\">\n<li>An Ubuntu 24.04 or Debian 12 server with root access.<\/li>\n<li>A subdomain such as <code>erp.example.com<\/code> pointed to the server IP with an A record.<\/li>\n<li>In the firewall, open only ports 22, 80 and 443 and keep the rest closed.<\/li>\n<\/ul>\n<h2>1. Install Docker<\/h2>\n<pre class=\"hkb-code\">curl -fsSL https:\/\/get.docker.com | sh\nsystemctl enable --now docker\ndocker compose version<\/pre>\n<h2>2. The docker-compose file<\/h2>\n<pre class=\"hkb-code\">mkdir -p \/opt\/odoo &amp;&amp; cd \/opt\/odoo<\/pre>\n<p>Create <code>docker-compose.yml<\/code> and choose a strong database password:<\/p>\n<pre class=\"hkb-code\">services:\n  db:\n    image: postgres:16\n    restart: unless-stopped\n    environment:\n      - POSTGRES_USER=odoo\n      - POSTGRES_PASSWORD=choose-a-strong-password\n      - POSTGRES_DB=postgres\n    volumes:\n      - db_data:\/var\/lib\/postgresql\/data\n  odoo:\n    image: odoo:18\n    restart: unless-stopped\n    depends_on:\n      - db\n    environment:\n      - HOST=db\n      - USER=odoo\n      - PASSWORD=choose-a-strong-password\n    volumes:\n      - odoo_data:\/var\/lib\/odoo\n  caddy:\n    image: caddy:2\n    restart: unless-stopped\n    ports:\n      - &quot;80:80&quot;\n      - &quot;443:443&quot;\n    volumes:\n      - .\/Caddyfile:\/etc\/caddy\/Caddyfile\n      - caddy_data:\/data\nvolumes:\n  db_data:\n  odoo_data:\n  caddy_data:<\/pre>\n<p>And the <code>Caddyfile<\/code>:<\/p>\n<pre class=\"hkb-code\">erp.example.com {\n    reverse_proxy odoo:8069\n}<\/pre>\n<h2>3. Start Odoo and create the database<\/h2>\n<pre class=\"hkb-code\">docker compose up -d\ndocker compose logs -f odoo<\/pre>\n<p>Open <code>https:\/\/erp.example.com<\/code> and the database creation page appears. Choose a strong <b>master password<\/b> and keep it safe, because it allows creating, deleting and copying databases, then pick your language and country.<\/p>\n<h2>Backups<\/h2>\n<ul class=\"hkb-list\">\n<li>From Odoo&#8217;s own database manager (<code>\/web\/database\/manager<\/code>) you can download a full backup with data and attachments.<\/li>\n<li>Take a <b>snapshot<\/b> from the VPS control panel before any update or new module.<\/li>\n<li>Keep a copy off the server; a snapshot does not replace a backup stored elsewhere.<\/li>\n<\/ul>\n<div class=\"hkb-note warn\"><b>A mistake to avoid:<\/b> Leaving the database manager open with a weak password. Anyone who gets in can delete or download your database. Use a strong master password, or disable the manager once the database exists.<\/div>\n<div class=\"hkb-note\"><b>At Hyyat Host:<\/b> NVMe VPS servers suited to Odoo and PostgreSQL: <a href=\"https:\/\/www.hyyat.com\/en\/vps-hosting\/\">VPS plans<\/a>, with our own control panel for power, console and snapshots, and Arabic and English support.<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Which Odoo version should I use?<\/summary>\n<p>Use the latest stable version available on Docker, as it gets updates for longer. Do not jump between major versions before testing the upgrade on a separate copy.<\/p>\n<\/details>\n<details>\n<summary>Does Odoo support Arabic and e-invoicing?<\/summary>\n<p>The interface supports Arabic, and there are local accounting modules for several countries. Confirm your country&#8217;s requirements with the module provider before relying on it.<\/p>\n<\/details>\n<details>\n<summary>How many users can the server handle?<\/summary>\n<p>It depends more on modules and data size than on user count. Start with 4GB, watch usage in the control panel and upgrade when needed.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/docker-compose-generator\/\">Docker Compose Generator for WordPress and Apps<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/vps-setup-script\/\">New VPS Setup Commands, Step by Step<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/vps-firewall-manage-open-ports\/\">Firewall: Control the Open Ports on Your VPS<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/when-to-move-from-shared-hosting-to-vps\/\">When Should You Move from Shared Hosting to a VPS? 7 Clear Signs<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/servers-without-control-panel\/\">All guides for servers without a panel \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In shortOdoo is an open-source ERP for sales, inventory, accounting and HR. On a VPS you run Odoo and PostgreSQL with Docker behind Caddy for HTTPS. Start with a 4GB plan for a small team and 8GB as users grow. Running Odoo on your own server gives you full control of your data, modules and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22577,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2733],"doc_tag":[],"class_list":["post-22589","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-servers-without-control-panel"],"year_month":"2026-11","word_count":571,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.hyyat.com\/en\/author\/admin\/"},"doc_category_info":[{"term_name":"Servers Without a Control Panel","term_url":"https:\/\/www.hyyat.com\/en\/kb\/servers-without-control-panel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/22589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=22589"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/22589\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/22577"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=22589"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=22589"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=22589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}