How to Install ERPNext on Docker (Step-by-Step Guide)

If you’re looking to install ERPNext on Docker, you’ve come to the right place! In this step-by-step guide, we’ll walk you through the process of deploying ERPNext on Docker seamlessly. Whether you

 · 3 min read

If you’re looking to install ERPNext on Docker, you’ve come to the right place! In this step-by-step guide, we’ll walk you through the process of deploying ERPNext on Docker seamlessly. Whether you’re a beginner or an experienced user, this tutorial will help you set up ERPNext in no time, ensuring a smooth and hassle-free experience.

By the end of this article, you’ll have a fully functional ERPNext system running in a Docker container, ready to streamline your business operations.

Table of Contents

  1. Prerequisites for Installation ( ERPNext on Docker ):
  2. Docker Installed
  3. Docker Compose
  4. Step 1 – Create a Directory for ERPNext
  5. Create a Directory
  6. Navigate to the Directory
  7. Step 2 – Create a Docker Compose File
  8. What is a Docker Compose File?
  9. Create and Paste the Docker Compose Configuration:
  10. Step 3 – Start ERPNext Containers
  11. Start ERPNext Containers:
  12. Checking the Status of Containers:
  13. Step 4 – Access ERPNext
  14. Open ERPNext in your Browser:
  15. Login Credentials
  16. Step 5 – Additional Operations
  17. To STOP All Containers:
  18. To Start All Containers:
  19. To Delete All Docker Images:
  20. To Execute an Interactive Shell Inside a Running Docker Container:
  21. Conclusion:

Prerequisites for Installation ( ERPNext on Docker ):

Before you start, make sure to have:

Docker Installed

Docker isolates apps in containers—no more dependency headaches. Follow the official guide to get Docker up and running on your system: Get Docker.

Docker Compose

Compose orchestrates multi‑container setups with a single YAML file. On Ubuntu, install it in one go:

sudo apt update && sudo apt install -y docker-compose

With Docker and Compose ready, you’re all set to deploy ERPNext effortlessly.

Step 1 – Create a Directory for ERPNext

Directory Structure for ERPNext on Docker

Create a Directory

Organizing your ERPNext files in a dedicated folder keeps everything tidy and easy to manage.

Run:

mkdir erpnext-docker

This creates a clean workspace for all your configuration and data.

Navigate to the Directory

Switch into your new folder with:

cd erpnext-docker

A quick pwd will confirm your location. Once you see /path/to/erpnext-docker, you’re in the right place—and ready to move on to setup!

Step 2 – Create a Docker Compose File

What is a Docker Compose File?

Think of Docker Compose as your “blueprint” for launching multiple containers in one go. In a simple YAML file, you define:

  1. Services (ERPNext, MariaDB, Redis, etc.)
  2. Networks for inter‑container communication
  3. Volumes to persist data

This single source of truth keeps your setup consistent and repeatable.

Create and Paste the Docker Compose Configuration:

1. Create a File:

nano docker-compose.yml

2. Grab this Docker compose configuration file:

Copy and paste the following Docker Compose configuration file into your docker-compose.yml file.

3. Paste & save

  1. Paste the YAML into your editor
  2. Press Ctrl+O (save), then Ctrl+X (exit)

Step 3 – Start ERPNext Containers

Start ERPNext Containers:

1. Launch the Background

docker-compose up -d

2. Watch the Magic:

  1. Docker pulls the ERPNext, MariaDB, Redis, and other service images
  2. Networks and volumes are created for seamless data flow
  3. Containers boot up in seconds, ready to serve your ERPNext instance

By running -d (detached), your terminal is free while ERPNext springs to life behind the scenes.

Checking the Status of Containers:

1. Quick Check

docker ps

2. Compose view:

docker-compose ps

Look for your services listed as Up with correct port mappings (e.g., 0.0.0.0:8080->80/tcp). If everything shows “Up,” congratulations—ERPNext is running smoothly!

Step 4 – Access ERPNext

Open ERPNext in your Browser:

1. Open your Browser and go to:

http://localhost:8080

Or replace localhost with your server’s IP address if you’re on a remote host.

2. You’ll land on the ERPNext login page—ready to explore your new ERP system instantly.

Login Credentials

  1. Password: admin
  2. Username: Administrator
Tip: For security, change your admin password right after logging in. Head to Settings → Users and Permissions and update your credentials to something strong and unique.

Step 5 – Additional Operations

Keep these handy commands at your fingertips to manage your ERPNext containers with ease:

To STOP All Containers:

docker-compose down

This command gracefully stops and removes your ERPNext containers, networks, and default volumes.

To Start All Containers:

docker-compose up -d

Re-launch your entire stack in detached mode—ERPNext springs back to life without blocking your terminal.

To Delete All Docker Images:

docker system prune --all --force --volumes

Prune unused images, containers, networks, and volumes to free up disk space instantly.

To Execute an Interactive Shell Inside a Running Docker Container:

docker exec -it <container_name> bash

Jump into a container’s shell for debugging, configuration tweaks, or quick inspections.

Conclusion:

You’ve successfully set up ERPNext using Docker—from creating a workspace and configuration file to launching containers and logging into your ERP system within minutes. This approach removes the usual setup headaches and gives you a flexible, reliable environment you can scale with confidence.

If you ever need help optimizing, customizing, or maintaining your ERPNext deployment, our team is here to support you. We specialize in ERPNext consulting, managed hosting, and tailored development services—so whether you’re just getting started or scaling up, we’ve got your back.

Let Docker handle the complexity, and let us help you make ERPNext work exactly the way you need it to.

Schedule Free Consultation

Talk to our experts


N
n8n

No comments yet.

Add a comment
Ctrl+Enter to add comment