Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
AO
Self-host Apache OFBiz
updated Nov 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Nov 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
An open-source ERP framework from the Apache Software Foundation, written in Java: web applications on a shared data model and service engine, with components for parties and customers, products, order management, accounting, manufacturing, human resources, marketing, work effort and content, plus a WebTools application for administration. The 24.09 series needs JDK 17. The container image starts with an embedded Apache Derby database and can be pointed at PostgreSQL through environment variables.
Pick Apache OFBiz when you want an ERP you can build on rather than just configure: it is a Java framework with a shared data model, a service engine and a set of ready-made web applications for parties, products, orders, accounting, manufacturing, human resources, marketing and work effort, and the 24.09 line is a Foundation-governed project licensed Apache-2.0. Our snippet runs the official `ghcr.io/apache/ofbiz:24.09.08` image (tagged 2026-10-21, the `-preloaddemo` variant of the same tag ships with demo data loaded), lets the entrypoint load only the seed data, creates the `admin` user with a generated password from `.env`, and keeps the Derby database and configuration in named volumes. The project does not state a RAM minimum; the Gradle build file starts the JVM with a 1 GB heap (`-Xmx1024M`), so our 2048 MB floor is an estimate. In the catalog, ERPNext and Odoo are finished products with their own app stores and a more guided setup, Dolibarr is the lightweight PHP option for small businesses and Tryton is a modular Python ERP; OFBiz is the one to choose if your team writes Java and wants the framework and the data model, accepting a utilitarian interface and a heavier first run.
What you need
Any VPS with at least 2048 MB of RAM
A domain you control — most self-hosted setups need HTTPS in front of them
About an afternoon — budget time for troubleshooting
OFBiz's Docker documentation and configuration files flag these before you rely on it:
non-negotiableOFBiz checks the HTTP Host header against host-headers-allowed, which by default lists only localhost, 127.0.0.1 and the Foundation's demo hostnames. Our snippet writes the VM's first local address into OFBIZ_HOST, but if you browse by a public IP or a domain you must add it (comma-separated, no spaces). The setting is applied only on the container's first start; afterwards edit config/security.properties in the config volume.
non-negotiableThe first start is slow. The entrypoint loads the seed data into Derby once and records flags in /ofbiz/runtime/container_state, so OFBIZ_DATA_LOAD and OFBIZ_ADMIN_PASSWORD only matter on a fresh runtime volume. Without OFBIZ_ADMIN_PASSWORD the admin login is admin / ofbiz, and nothing forces a password change, so that login persists until you change it.
non-negotiableHTTPS is served on port 8443 with the ofbizssl.jks keystore that lives in the public source tree, so the browser warns about the certificate and the key is not private. Put a reverse proxy with a real certificate in front before exposing it, and do not publish the 8009 (AJP) or 5005 ports the image also exposes.
non-negotiableThe default database is embedded Derby. To use PostgreSQL set OFBIZ_POSTGRES_HOST and the OFBIZ_POSTGRES_* variables; the entrypoint then downloads the JDBC driver from jdbc.postgresql.org on first start, so the container needs outbound internet, and the database user passwords default to ofbiz, ofbizolap and ofbiztenant unless you override them.
non-negotiableThe new-user path is the Party Manager at /partymgr; the WebTools application is at /webtools on the same port. Seed data creates no company at all, so you create the organisation first, then a chart of accounts, facilities and products before it is useful; the -preloaddemo image is for exploring, not for real records.
Apache OFBiz used 640 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 2048 MB.
Is the Apache OFBiz install snippet verified?
The Apache OFBiz install snippet is marked verified on Ubuntu 26.04 (Nov 2026).