---
title: "Deploy Odoo"
description: "Odoo 20 ERP and CRM on Postgres: generated admin login, DB manager off"
category: "Other"
url: https://railway.com/deploy/odoo-2
---

# Deploy Odoo

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

**[Deploy Odoo on Railway](https://railway.com/template/odoo-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/odoo-2/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Odoo https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/odoo.png

- **Source:** https://github.com/aalfath/odoo-railway-template
- **Health check:** /web/health
- **Public domain:** Yes

## Documentation

# 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

* Template source: [aalfath/odoo-railway-template](https://github.com/aalfath/odoo-railway-template)
* Official image: [odoo on Docker Hub](https://hub.docker.com/_/odoo) (`odoo:20.0-20261112`)
* Documentation: [Odoo 20 user docs](https://www.odoo.com/documentation/20.0/)

### 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.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/odoo-2
