Install Docker Post Install for development environement Install docker-compose Docker Compose Completion
Create directory if not exists
mkdir -p /opt/data/frappedev/mysqlAssuming now /opt/data/frappedev/mysql directory exists
docker volume create --driver local --opt type=none --opt device=/opt/data/frappedev/mysql --opt o=bind frappedev-mariadb-volCreate directory if not exists
mkdir -p /opt/data/frappedev/redis_cache;
mkdir -p /opt/data/frappedev/redis_queue;
mkdir -p /opt/data/frappedev/redis_socketio; Assuming now /opt/data/frappedev/redis_cache/, /opt/data/frappedev/redis_queue/, /opt/data/frappedev/redis_socketio directories exists
docker volume create --driver local --opt type=none --opt device=/opt/data/frappedev/redis_cache --opt o=bind frappedev-redis-cache-data;
docker volume create --driver local --opt type=none --opt device=/opt/data/frappedev/redis_queue --opt o=bind frappedev-redis-queue-data;
docker volume create --driver local --opt type=none --opt device=/opt/data/frappedev/redis_socketio --opt o=bind frappedev-redis-socketio-data;To name it to use it for others application like metabase
docker network create frappe-network/home/..../frappe
/home/..../frappe_docker_dev => clone of https://github.com/frappe/frappe_docker
/home/..../frappe_docker_file => Clone of this repo
Then follow the step given by official documentation ERPNext/Frappe dev env install
cd /home/..../frappe_docker_file/frappe
docker-compose upEnter into bash of the container
docker exec -e "TERM=xterm-256color" -w /workspace/development -it frappedev_frappe_1 bashinside container bash
bench init --skip-redis-config-generation --frappe-branch develop frappe-bench;
cd frappe-bench;
bench set-config -g db_host mariadb;
bench set-config -g redis_cache redis://redis-cache:6379;
bench set-config -g redis_queue redis://redis-queue:6379;
bench set-config -g redis_socketio redis://redis-socketio:6379;
bench set-config -g server_script_enabled 1;
bench new-site [url without https:// probably local site name erpnext.local manage into /etc/hosts for local dev env] --mariadb-root-username root --mariadb-root-password 123 --admin-password admin --mariadb-user-host-login-scope='%' --db-name [dbname];
bench get-app --branch develop erpnext https://github.com/frappe/erpnext.git;
bench --site [url without https:// probably local site name erpnext.local manage into /etc/hosts for local dev env] install-app erpnext;
bench --site [url without https:// probably local site name erpnext.local manage into /etc/hosts for local dev env] set-config developer_mode 1;
bench --site [url without https:// probably local site name erpnext.local manage into /etc/hosts for local dev env] clear-cache;
bench --site all enable-scheduler;
If you'r going to intall more than one site
bench config dns_multitenant onOnce first bench install is done you can revert docker-compose
frappe:
image: frappe/bench:latest
# command: bash -c "cd frappe-bench;bench start"
command: sleep infinityby
frappe:
image: frappe/bench:latest
command: bash -c "cd frappe-bench;bench start"
# command: sleep infinitySetup Frappe Email Domain https://0.0.0.0:8000/app/email-domain/example.com
IMAP Server : greenmail port : 3143 use IMAP : yes
SMTP Server : greenmail port : 3025
In Green mail : Create user (they should already be created with docker compose) Check here http://0.0.0.0:6081/#get-/api/user
But you can create more http://0.0.0.0:6081/#post-/api/user or run on host
curl -X POST "http://0.0.0.0:6081/api/user" -H "accept: application/json" -H "content-type: application/json" -d '{"email":"user1@test.com","login":"user1@test.com","password":"user1@test.com"}';
Setup Frappe Account the password you just set in GreenMail https://0.0.0.0:8000/app/email-account/view/list
with the email account you've created in Greenmail
GNU/General Public License (see license.txt)
This project is licensed as GNU General Public License (v3).
By contributing to this project, you agree that your contributions will be licensed under its GNU General Public License (v3).