Homeย ย Erp ย ย How to run ...

How to run ERPNext software in docker

๐Ÿš€ How to Run ERPNext Using Docker โ€“ The Simple Way

ERPNext is a powerful, open-source ERP system built on the Frappe framework. Whether you're exploring it for the first time or deploying it for your team, running ERPNext using Docker can save hours of setup time and headaches.

In this post, youโ€™ll learn how to get ERPNext up and running in minutes using Docker.

๐Ÿงฑ Why Use Docker for ERPNext?

Running ERPNext without Docker requires manually setting up:

With Docker, you avoid all that by using prebuilt containers with these components isolated, tested, and configured.

๐Ÿ”ง Prerequisites

Before you begin, make sure you have:

โœ… Docker installed โœ… Docker Compose installed โœ… At least 4 GB RAM and 2 CPUs available โœ… Ensure you are running linux or Macos as ERPnext works only on windows.

Optional: Git for cloning the ERPNext Docker repo.

๐Ÿ“ฆ Step 1: Clone the Frappe/ERPNext Docker Repository

git clone https://github.com/frappe/frappe_docker.git
cd frappe_docker
docker compose -f pwd.yml up -d

This will start the ERPNext on port 8080. You can access it at http://localhost:8080 But if you want to do further configuration, you can follow below steps.

๐Ÿ—๏ธ Step 2: Set Up Your Environment

Create a .env file (or copy from the example):

cp .env-example .env

Edit it as needed. Youโ€™ll define things like:

PROJECT_NAME=erpnext
FRAPPE_VERSION=version-15
ERPNEXT_VERSION=version-15
MYSQL_ROOT_PASSWORD=root

You can use other versions like develop, version-14, etc.

๐Ÿ› ๏ธ Step 3: Build and Start the Containers

Run this to bring up all containers:

docker compose -f compose.yaml -f overrides/erpnext.yaml up -d

It will set up:

๐ŸŒ Step 4: Access ERPNext in Browser

Once the containers are running, open your browser:

http://localhost:8080

Youโ€™ll see the ERPNext login screen.

๐Ÿงช Optional: Create First User and Company

After login, ERPNext will prompt you to set up the first user and company. You can also automate this with scripts.

๐Ÿ“‚ Directory Structure Overview

frappe_docker/
โ”œโ”€โ”€ compose.yaml
โ”œโ”€โ”€ overrides/
โ”‚   โ””โ”€โ”€ erpnext.yaml
โ”œโ”€โ”€ patches/ (optional)
โ”œโ”€โ”€ sites/
โ”‚   โ””โ”€โ”€ erp.localhost/

๐Ÿงน Stopping and Cleaning Up

To stop the containers:

docker compose down

To remove all data:

docker volume prune

๐Ÿ’ก Tips and Troubleshooting

If you need help with this setup, you can contact https://it.softpost.org/services/erp and they will help with this.

Published on: Jul 07, 2025, 05:41 AM ย 
ย 

Comments

Add your comment