Sure, here are the steps to install ERPNext on M1 Mac using Docker and Docker Compose:
-
Install Docker on your M1 Mac if you haven't already. You can download it from the Docker website.
-
Install Docker Compose using the following command in the 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
- Make the Docker Compose binary executable using the following command:
sudo chmod +x /usr/local/bin/docker-compose
- Create a directory called 'erpnext' on your desktop using the following command:
mkdir ~/Desktop/erpnext
- Change to the newly created directory using the following command:
cd ~/Desktop/erpnext
- Create a file called 'docker-compose.yml' using your preferred text editor, and copy the following contents into the file:
version: '3'
services:
web:
image: frappe/erpnext-worker:m1-beta
ports:
- "8000:8000"
- "9000-9100:9000-9100"
environment:
- DB_ROOT_USER=root
- DB_ROOT_PASSWORD=<YourRootPasswordHere>
- SITES=erpnext.local
- SITES_PATH=/erpnext/sites
- WORKER_CLASS=gevent
- FRAPPE_ERP_NEXT_VERSION=beta
volumes:
- ~/Desktop/BerkimpireHathaway:/erpnext/sites
- bench-assets-vol:/assets
- redis-vol:/redis-socket
depends_on:
- db
- redis-cache
- redis-queue
links:
- db
- redis-cache
- redis-queue
worker-long:
image: frappe/erpnext-worker:m1-beta
ports:
- "9000-9100:9000-9100"
environment:
- DB_ROOT_USER=root
- DB_ROOT_PASSWORD=<YourRootPasswordHere>
- SITES=erpnext.local
- SITES_PATH=/erpnext/sites
- WORKER_TYPE=long
- WORKER_CLASS=gevent
- QUEUES=default,long
- FRAPPE_ERP_NEXT_VERSION=beta
volumes:
- ~/Desktop/BerkimpireHathaway:/erpnext/sites
- bench-assets-vol:/assets
- redis-vol:/redis-socket
depends_on:
- db
- redis-cache
- redis-queue
links:
- db
- redis-cache
- redis-queue
worker-short:
image: frappe/erpnext-worker:m1-beta
ports:
- "9000-9100:9000-9100"
environment:
- DB_ROOT_USER=root
- DB_ROOT_PASSWORD=<YourRootPasswordHere>
- SITES=erpnext.local
- SITES_PATH=/erpnext/sites
- WORKER_TYPE=short
- WORKER_CLASS=gevent
- QUEUES=short
- FRAPPE_ERP_NEXT_VERSION=beta
volumes:
- ~/Desktop/BerkimpireHathaway:/erpnext/sites
- bench-assets-vol:/assets
- redis-vol:/redis-socket
depends_on:
- db
- redis-cache
- redis-queue
links:
- db
- redis-cache
- redis-queue
db:
image: mariadb:10.5
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
environment:
- MYSQL_ROOT_PASSWORD=<YourRootPasswordHere>
volumes:
- db-vol:/var/lib/mysql
redis-cache:
image: redis:latest
ports:
- "12000:6379"
redis-queue:
image: redis:latest
ports:
- "13000:6379"
volumes:
bench-assets-vol:
db-vol:
redis-vol:
-
Replace the placeholders <YourRootPasswordHere> with your desired password. Make sure it is secure and unique.
-
Save the file.
-
Start the ERPNext Docker containers by running the following command in the terminal:
docker-compose up -d --build
- Wait for all the containers to start up. It may take several minutes. You can monitor the progress using the following command:
docker-compose logs -f web
-
Access the ERPNext web interface by opening your web browser and navigating to http://localhost:8000. You should see the ERPNext login page.
-
Log in using the default username Administrator and the password you set earlier.
-
Congratulations! You have successfully installed ERPNext on your M1 Mac using Docker and Docker Compose.