Self-hosting ERPNext with Docker and bench: what’s involved

Short answer: Self-hosting ERPNext means you (or your provider) run the system on your own Linux server or cloud VM instead of on Frappe Cloud or another managed host. The two common paths are the official ERPNext Docker setup and Frappe bench. Docker suits containerised cloud hosting; bench gives finer control on a dedicated server. Both need DNS, SSL, email, backups, staging and a plan for upgrades — not just an install script.

This post is the technical deep dive on those two paths. For the wider picture — hosting options at a high level, customisation, integrations and migration — see ERPNext deployment and customisation. For designing the system around how your business actually works, see ERPNext functional consulting. If you are still deciding whether you need an ERP at all, start with ERP vs accounting software.

What “self-hosting ERPNext” means

ERPNext is open-source software built on the Frappe framework. Someone has to run the servers it lives on.

Managed hosting (for example Frappe Cloud or a similar host) means the provider looks after the platform, updates and much of the infrastructure. You configure the business side and accept less control over the environment, custom apps and sometimes where data is stored.

Self-hosting means ERPNext runs on infrastructure you control: a Linux virtual machine in the public cloud, Loginet’s own cloud, or an on-premises server. You choose the region (handy for keeping data in Australia), backups, access and upgrade timing — and you also own patching, monitoring and restore testing.

Self-hosting is not “free ERPNext.” The software has no licence fee for itself, but hosting, implementation, security and ongoing operations still cost time and money. The question is whether you want that control, and whether your team (or a partner) can carry the ops load.

Two common paths: Docker vs Frappe bench

In plain English, both paths install the same product. They differ in how the pieces are packaged and how you upgrade them.

ERPNext Docker (often via Docker Compose). Services such as the web app, MariaDB, Redis, workers and a reverse proxy run as containers. Official images and compose files define how they connect. Volumes hold database and site files so data survives container restarts. This path fits teams already comfortable with containers and cloud VMs.

Frappe bench. Bench is the traditional command-line tooling for Frappe/ERPNext. It creates a “bench” directory with Python environments, apps, sites and process management (commonly with a process supervisor). You get fine-grained control over apps, sites and upgrade steps on a dedicated Linux server. It rewards operators who want to see and tune every layer.

Loginet deploys ERPNext using either the official Docker setup or Frappe bench, depending on your hosting and how you want upgrades managed. Neither path is “more official” as a business choice — they are different operating models for the same open-source stack.

Docker vs bench at a glance

ERPNext Docker Frappe bench
Best when You want containerised cloud hosting and repeatable environments You want fine control on a dedicated Linux server
Day-to-day feel Compose services, images, volumes and container logs Bench commands, site config, supervisor/nginx on the host
Multi-site Possible; patterns differ by setup Native bench multi-site is a common reason teams choose it
Upgrades Image and compose version bumps, then migrate sites carefully Bench update / migrate workflow with more knobs
Ops skill Docker, compose, networking, volume backups Linux admin, Python/Node toolchain, process and reverse-proxy care
Typical fit Cloud VMs (AWS, Azure, own cloud) Dedicated server or VM where you manage the OS closely
Control Strong isolation; less “everything on one host” Deep host-level control; more surface to patch yourself

Many Australian self-host projects land on Docker for cloud VMs and bench for dedicated or tightly managed servers — but the right call depends on who will operate the system after go-live.

What you need before you start

Before any install script runs, plan the basics:

  • Linux server or VM — enough CPU, RAM and disk for MariaDB, Redis, workers and file storage; size for growth, not only day one
  • DNS — a hostname (for example erp.yourcompany.com.au) pointing at the server
  • SSL/TLS — HTTPS certificates, renewed automatically
  • Outbound email / SMTP — for password resets, notifications and document emails (a common gotcha on fresh VMs)
  • Backups — database and site files, stored off the same disk, with a restore test schedule
  • Separate staging — a non-production environment for upgrades, custom apps and risky changes
  • Access control — SSH keys, firewall rules, who can reach the admin and database ports
  • Monitoring — disk, memory, failed jobs and HTTPS checks, so problems show up before users do

Skipping staging or restore tests is the usual way a “successful install” becomes a painful first upgrade.

Typical Docker shape (conceptual)

An ERPNext Docker Compose stack usually looks like this:

  1. Compose file(s) define services: ERPNext/Frappe app containers, MariaDB, Redis, and often a proxy for HTTPS.
  2. Volumes persist the database and sites directory so recreating containers does not wipe the business.
  3. Environment and secrets hold passwords, site names and mail settings — keep them out of public repos.
  4. Workers and schedulers run background jobs (emails, long reports, queued tasks). If workers are down, the UI may look fine while work stalls.
  5. Upgrades mean moving to newer images, backing up first, then running site migrations and checking custom apps against the new version in staging.

Treat official compose examples as a starting pattern, not a finished production design. Production needs TLS, backup jobs, monitoring, restricted ports and a documented restore path. Copy-paste tutorials go stale as image tags and compose layouts change — design around responsibilities, not a single blog post’s YAML.

Typical bench shape (conceptual)

A bench-based install usually looks like this:

  1. Create a bench on a Linux host with the required system packages and a supported Python/Node toolchain.
  2. Get apps (Frappe, ERPNext and any custom apps) into the bench and create one or more sites.
  3. Production setup wires a process supervisor, a reverse proxy (often nginx) and SSL.
  4. Sites and apps live in a known directory layout, which makes multi-site and custom-app work familiar to Frappe operators.
  5. Upgrades follow a bench update / migrate rhythm: backup, update apps on staging, migrate, test, then promote carefully to production.

Bench gives you visibility into every layer. The trade-off is that you own OS patches, the Python environment, the reverse proxy and the supervisor config — not only the ERPNext version number.

Production responsibilities either path still owns

Whether you choose Docker or bench, production ERPNext is an operations product:

  • Security patches for the host OS, containers or packages, and the apps themselves
  • MariaDB care — backups, growth, slow queries and restore drills
  • Redis and workers — queues that must keep running for emails, reports and background jobs
  • Upgrades — major versions need staging tests against your custom fields, scripts and custom apps
  • Monitoring and alerting — disk full, certificate expiry, failed jobs, HTTPS down
  • Access and secrets — least privilege, rotated credentials, no shared root passwords
  • Disaster recovery — know how long a restore takes, and who runs it

A polished install day does not replace a written upgrade and restore runbook.

Where to host a self-hosted ERPNext

Self-hosted ERPNext commonly runs on:

  • Loginet’s own cloud — secure managed hosting when you want the application and the platform looked after together
  • AWS — Linux VMs or containers in an Australian region, with you (or Loginet) owning the stack; Loginet is an AWS Partner
  • Microsoft Azure — the same idea on Azure VMs or containers; Loginet is a Microsoft Azure Partner
  • On-premises — your own hardware when connectivity or policy requires it; you carry power, hardware refresh and site disaster recovery

Our cloud solutions team designs and manages this kind of environment. For AWS specifically, see Amazon Web Services and AWS migration; for Azure, see Microsoft Azure. Region choice is how most Australian businesses keep ERPNext data in-country when they self-host.

When self-hosting is the wrong choice

Prefer a managed host when:

  • Nobody on your side (or retainer) will own Linux, Docker/bench, backups and upgrades
  • You need to go live quickly with minimal infrastructure decisions
  • Custom apps and deep environment control are not on the roadmap
  • Ops risk matters more to you than choosing every patch window

Self-hosting suits teams that want Australian-region control, custom apps, specific network setups or a single partner looking after both ERPNext and the cloud underneath. If that is not you, managed hosting is often the calmer path — and you can still do serious functional design and configuration on either model.

How Loginet helps

Loginet provides ERPNext functional consulting as well as deployment and customisation, built around how each business operates, bringing sales, purchasing, stock, accounts and related work under one system with automation. We deploy with Docker or bench depending on hosting and how you want upgrades managed. We will sign an NDA before scoping software projects when you need to share process or system detail.

We provide secure managed hosting on Loginet’s own cloud and on AWS, and we are an AWS Partner and a Microsoft Azure Partner. We work from our Toowoomba head office and Bundall (Gold Coast) office, with onsite support across Queensland and service in other Australian states. With 20+ IT experts and 4+ years supporting Queensland SMBs, the same team can design the processes, deploy the stack and look after it after go-live.

Explore ERP solutions for the wider offering, then dig into deployment and customisation or functional consulting depending on whether you are deciding where it runs or how the business should use it.

Frequently asked questions

What is ERPNext Docker?

ERPNext Docker runs ERPNext and its dependencies (such as MariaDB and Redis) as containers, usually orchestrated with Docker Compose. It is a common way to self-host ERPNext on a cloud VM with a repeatable, containerised layout.

What is Frappe bench?

Frappe bench is the command-line tooling used to install and manage Frappe and ERPNext on a Linux server. It creates a bench with apps and sites and is often chosen when you want fine-grained control or multi-site management on a dedicated host.

Is Docker or bench better for self-hosting ERPNext?

Neither is universally better. Docker suits containerised cloud hosting; bench suits dedicated servers and operators who want deeper host-level control. Choose based on who will run upgrades and day-to-day ops, not on which blog post is trending.

Can I self-host ERPNext on AWS or Azure in Australia?

Yes. Self-hosting on AWS or Azure lets you pick an Australian region for the VMs or containers. You (or your provider) still own patching, backups, monitoring and upgrades. Loginet can design and manage these environments as an AWS Partner and a Microsoft Azure Partner.

Do I still need staging if I use Docker?

Yes. Containers make environments easier to repeat; they do not remove the need to test upgrades and custom apps before production. Plan a separate staging site or stack and restore-tested backups either way.

When should I choose managed hosting instead of self-hosting?

Choose managed hosting when you want the provider to carry most platform and update work, and you do not need deep control over the environment or custom apps. Self-host when region control, custom apps or specific infrastructure requirements matter more.

Can Loginet deploy and host ERPNext for us?

Yes. Loginet handles ERPNext deployment and customisation (Docker or bench), functional consulting, and secure managed hosting on Loginet’s own cloud or on AWS. Book a free 30-minute strategy call to talk through the fit.

Talk through Docker, bench or managed hosting

Not sure whether to self-host ERPNext with Docker or bench, or to stay on a managed platform? Book a free 30-minute strategy call and we’ll talk through control, Australian data residency, upgrades and who will own the day-to-day operations — then recommend a path that matches how your team actually works.

Book Your Free 30-Minute Strategy Call

The quickest way to get started is a free 30-minute strategy call. We’ll talk through your setup and goals and give you clear next steps, with no obligation. Prefer to write? Send us a message instead.

Let's talk about your IT

Book a free 30-minute strategy call with our team, or send us a message. No obligation, no hard sell, just straight answers about your IT, cloud and telecom.

Prefer to call?

(07) 4516 2006

Sales: Mon–Fri 9am–5pm AEST. Existing clients: 24/7 support on the same number.

Book a free 30-minute call

30 minutes · Video or phone · Times shown in Australia/Brisbane (AEST)

Calendar not loading? Open the booking page in a new tab (opens in a new tab)

Or send us a message