Deploy Odoo

Odoo 20 ERP and CRM on Postgres: generated admin login, DB manager off

Deploy Odoo

/var/lib/postgresql/data

/var/lib/odoo

Deploy and Host Odoo on Railway

Odoo is an open-source suite of business apps: CRM, sales, invoicing, accounting, inventory, purchasing, manufacturing, projects, website, eCommerce and HR. The Community Edition is free under the LGPL-3 licence. Every app shares one database and one web interface, so you install only the apps you need and add more later.

About Hosting Odoo

Odoo is a Python web server backed by PostgreSQL, and it keeps uploaded files and attachments in a filestore on disk. This template runs Odoo Community 20.0 from the official Docker image, pinned by version and digest, next to Railway Postgres, with the filestore on a volume. On first start it creates a dedicated database role (Odoo refuses to run as the Postgres superuser), initialises one database without demo data, and creates the admin user with a generated password. The database manager is disabled and the master password is a generated secret, so nobody can create, copy or drop databases from the web.

Common Use Cases

  • CRM, quotations, sales orders and invoicing for a small or mid-sized business
  • Inventory, purchasing and manufacturing in one system with your accounting
  • Projects, timesheets, events and a company website

Dependencies for Odoo Hosting

  • PostgreSQL (Railway Postgres, included in the template)
  • A volume for the Odoo filestore at /var/lib/odoo (included)

Deployment Dependencies

Implementation Details

First login. Open the Odoo service's public URL and log in with the username admin and the value of ODOO_ADMIN_PASSWORD (Odoo service, Variables tab). Then change the login to your email and set your own password under My Preferences, and install apps from the Apps menu. The first start takes a minute or two while the database is created.

Variables. Nothing to fill in at deploy time. ODOO_ADMIN_PASSWORD, ODOO_MASTER_PASSWORD and ODOO_DB_PASSWORD are generated secrets. DATABASE_URL points at Railway Postgres and is only used at start to create Odoo's own role and database. Changing ODOO_ADMIN_PASSWORD after the first start has no effect: change the password in Odoo instead.

How it runs. Odoo runs in threaded mode (workers = 0) on one port, so the web client, live updates and scheduled actions all work behind Railway's domain. Outgoing email is optional: add your SMTP server under Settings (Outgoing Email Servers). Custom modules can go in /var/lib/odoo/addons/20.0 on the volume, or in a fork of the template repo.

Updates. The service builds from the template's GitHub repo, so new Odoo 20.0 builds arrive as an "update available" notice in your project, with notes in the repo's CHANGELOG. A move to a new major version needs a database migration and will be marked as breaking.

Why Deploy Odoo on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Odoo on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
52