Sure, I can help you with that. Here are the steps to install ERPNext on M1 Mac using Docker and Docker Compose:
-
Install Docker on your M1 Mac by following the instructions on the Docker website.
-
Install Docker Compose by running the following commands in Terminal:
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
-
Create a folder called erpnext on your desktop and navigate into it:
$ cd ~/Desktop
$ mkdir erpnext
$ cd erpnext
-
Create a new file called docker-compose.yml in this directory, and paste in the following contents:
version: "3"
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- "./mariadb-data:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: yourpassword
MYSQL_USER: erpnext
MYSQL_PASSWORD: erpnext
MYSQL_DATABASE: erpnext
redis-cache:
image: redis:latest
command: redis-server --appendonly yes
restart: always
redis-queue:
image: redis:latest
command: redis-server --appendonly yes
restart: always
erpnext-python:
build: .
restart: always
depends_on:
- db
- redis-cache
- redis-queue
volumes:
- "./erpnext:/home/frappe/frappe-bench"
ports:
- "8000:8000"
tty: true
-
Save the file and close it.
-
Create another folder on your desktop called BerkimpireHathaway
-
Open Terminal and navigate to the erpnext directory:
$ cd ~/Desktop/erpnext
-
Create a new file called Dockerfile and paste in the following contents:
FROM frappe/erpnext-worker:v13.11.2-beta.1
RUN install_app erpnext https://github.com/frappe/erpnext version-13
WORKDIR /home/frappe/frappe-bench
This will download the ERPNext worker image and install the ERPNext app from the GitHub repository.
-
Save the file and close it.
-
Open Terminal and navigate to the BerkimpireHathaway folder:
$ cd ~/Desktop/BerkimpireHathaway
-
Run the following command to start the Docker containers:
$ docker-compose up -d
This will start the containers in detached mode, which means they will run in the background.
-
Wait for a few minutes for the containers to start up.
-
Open your web browser and go to http://localhost:8000. You should see the ERPNext login screen.
That's it! You have successfully installed ERPNext on your M1 Mac using Docker and Docker Compose, and all the ERPNext documents will be saved in the BerkimpireHathaway folder on your desktop.