/erpnext-deploy

ERPNext deploy with Docker-Compose and Ansible. Part of the university project (Zastosowania Informatyki 2).

Primary LanguageShell

ERPNext deploy with Docker-Compose and Ansible

Deploy part of the university project (Zastosowania Informatyki 2).

Prerequisites

Ansible and roles/collections:

You can install all required roles and collections with:

ansible-galaxy install geerlingguy.docker geerlingguy.pip community.docker

Run ssh-agent if you connect with keys via SSH:

eval $(ssh-agent)
ssh-add ~/.ssh/zi

Otherwise (if you connect with the password) make sure that package sshpass is installed on your computer.

Adjust properites in hosts.yaml and frappe-docker/env-*.

Deploy with playbooks

Setup stuff on machine (install Docker, Docker Compose):

ansible-playbook setup.yaml -i hosts.yaml -l srv_test -K

Deploy ERPNext:

ansible-playbook deploy-erp.yaml -i hosts.yaml -l srv_test -K

Undeploy ERPNext:

ansible-playbook undeploy-erp.yaml -i hosts.yaml -l srv_test -K